summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4693de63d321dabea1d45cca56d39c14582b428e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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