summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-29 14:40:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-29 14:40:08 +0000
commitab60dcf3194c847cb6b05b64e3e505ad042c36d4 (patch)
treed7b1710875110dccf724cc21671a196107eb5d2a /Makefile
parentb287c9457c80c3dfa0d0ee5616f2f72058df7519 (diff)
downloadmkinitfs-ab60dcf3194c847cb6b05b64e3e505ad042c36d4.tar.bz2
mkinitfs-ab60dcf3194c847cb6b05b64e3e505ad042c36d4.tar.xz
configurable sysconfdir, datarootdir and datadir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1162dc6..4e1d33f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
VERSION := 1.1
+sysconfdir ?= /etc/mkinitfs
+datarootdir ?= /usr/share
+datadir ?= $(datarootdir)/mkinitfs
+
SBIN_FILES := mkinitfs bootchartd
SHARE_FILES := initramfs-init
CONF_FILES := mkinitfs.conf \
@@ -31,10 +35,16 @@ DISTFILES := $(IN_FILES) $(CONF_FILES) Makefile
INSTALL := install
SED := sed
-SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g'
+SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
+ -e 's:@sysconfdir@:$(sysconfdir):g' \
+ -e 's:@datadir@:$(datadir):g'
all: $(SCRIPTS)
+
+clean:
+ rm -f $(SCRIPTS)
+
help:
@echo mkinitfs $(VERSION)
@echo "usage: make install [DESTDIR=]"