diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-29 13:18:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-29 13:18:13 +0000 |
commit | 1378536fcf22544533e6df4cbca3c558ffcc01ab (patch) | |
tree | 5f9ca9ad44b6432214f453482edc75136efc6a77 /Makefile | |
download | mkinitfs-1378536fcf22544533e6df4cbca3c558ffcc01ab.tar.bz2 mkinitfs-1378536fcf22544533e6df4cbca3c558ffcc01ab.tar.xz |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4693de6 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ + +VERSION := 1.1 + + +SBIN_FILES := mkinitfs bootchartd +SHARE_FILES := initramfs-init +CONF_FILES := mkinitfs.conf \ + modules.d/ata \ + modules.d/ide \ + modules.d/base \ + modules.d/raid \ + modules.d/scsi \ + modules.d/cdrom \ + modules.d/usb \ + modules.d/cramfs \ + files.d/bootchart \ + files.d/base + +DISTFILES := $(SBIN_FILES) $(CONF_FILES) $(SHARE_FILES) Makefile + +INSTALL := install + +help: + @echo "usage: make install [DESTDIR=]" + +install: + for i in $(SBIN_FILES); do \ + $(INSTALL) -Dm755 $$i $(DESTDIR)/sbin/$$i || exit 1;\ + done + for i in $(CONF_FILES); do \ + $(INSTALL) -Dm644 $$i $(DESTDIR)/etc/mkinitfs/$$i || exit 1;\ + done + for i in $(SHARE_FILES); do \ + $(INSTALL) -D $$i $(DESTDIR)/usr/share/mkinitfs/$$i || exit 1;\ + done + |