diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-29 14:40:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-29 14:40:08 +0000 |
commit | ab60dcf3194c847cb6b05b64e3e505ad042c36d4 (patch) | |
tree | d7b1710875110dccf724cc21671a196107eb5d2a /Makefile | |
parent | b287c9457c80c3dfa0d0ee5616f2f72058df7519 (diff) | |
download | mkinitfs-ab60dcf3194c847cb6b05b64e3e505ad042c36d4.tar.bz2 mkinitfs-ab60dcf3194c847cb6b05b64e3e505ad042c36d4.tar.xz |
configurable sysconfdir, datarootdir and datadir
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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=]" |