]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
custom paths
authorLance Albertson <lance@osuosl.org>
Sun, 27 Sep 2009 04:26:43 +0000 (21:26 -0700)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Sep 2009 17:00:48 +0000 (19:00 +0200)
Fix Makefile so that it allows us to install the root in a sane location (which
is needed in Gentoo).

Makefile

index d9ce0f834f0cf87fe03e2dea67e0ffa9d7a12c2d..f6d162fe9b488a037278de0fd86ecb64810b3816 100644 (file)
--- 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