summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2009-09-26 21:26:43 -0700
committerHarald Hoyer <harald@redhat.com>2009-09-29 19:00:48 +0200
commit13d942e16320e6ca686a10ee9e8bc047184a2802 (patch)
treeaae6a602b096bef14560ebfc571be80103e0187f /Makefile
parent99fd62e3bebed1861902915379973020860dbb5f (diff)
downloaddracut-13d942e16320e6ca686a10ee9e8bc047184a2802.tar.gz
dracut-13d942e16320e6ca686a10ee9e8bc047184a2802.tar.bz2
dracut-13d942e16320e6ca686a10ee9e8bc047184a2802.zip
custom paths
Fix Makefile so that it allows us to install the root in a sane location (which is needed in Gentoo).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d9ce0f83..f6d162fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
VERSION=002
GITVERSION=$(shell [ -d .git ] && git rev-list --abbrev-commit -n 1 HEAD |cut -b 1-8)
-prefix = /usr
-datadir = ${prefix}/share
-pkglibdir = ${datadir}/dracut
-sysconfdir = ${prefix}/etc
-sbindir = ${prefix}/sbin
-mandir = ${prefix}/share/man
+prefix ?= /usr
+datadir ?= ${prefix}/share
+pkglibdir ?= ${datadir}/dracut
+sysconfdir ?= ${prefix}/etc
+sbindir ?= ${prefix}/sbin
+mandir ?= ${prefix}/share/man
modules.d/99base/switch_root: switch_root.c
gcc -D _GNU_SOURCE -D 'PACKAGE_STRING="dracut"' -std=gnu99 -fsigned-char -g -O2 -o modules.d/99base/switch_root switch_root.c