From: Lance Albertson Date: Sun, 27 Sep 2009 04:26:43 +0000 (-0700) Subject: custom paths X-Git-Tag: 003~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13d942e16320e6ca686a10ee9e8bc047184a2802;p=thirdparty%2Fdracut.git custom paths Fix Makefile so that it allows us to install the root in a sane location (which is needed in Gentoo). --- diff --git a/Makefile b/Makefile index d9ce0f834..f6d162fe9 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