Annotation of /tags/mkinitrd-6_1_1/Makefile
Parent Directory
|
Revision Log
Revision 555 -
(hide annotations)
(download)
Sun Sep 2 00:20:24 2007 UTC (16 years, 8 months ago) by niro
Original Path: trunk/mkinitrd-magellan/Makefile
File size: 1700 byte(s)
Sun Sep 2 00:20:24 2007 UTC (16 years, 8 months ago) by niro
Original Path: trunk/mkinitrd-magellan/Makefile
File size: 1700 byte(s)
-fixed typos
1 | niro | 532 | VERSION=$(shell cat VERSION) |
2 | |||
3 | ARCH := $(patsubst i%86,i386,$(shell uname -m)) | ||
4 | ARCH := $(patsubst sparc%,sparc,$(ARCH)) | ||
5 | |||
6 | SUBDIRS = nash grubby livecd isolinux | ||
7 | |||
8 | #ifeq ($(ARCH),sparc) | ||
9 | #SUBDIRS += loadinitrd | ||
10 | #endif | ||
11 | |||
12 | #ifeq ($(ARCH),i386) | ||
13 | #SUBDIRS += loadinitrd | ||
14 | #endif | ||
15 | |||
16 | niro | 547 | OPTCFLAGS = $(CFLAGS) |
17 | |||
18 | niro | 544 | mandir = usr/share/man |
19 | docdir = usr/share/doc/mkinitrd-$(VERSION) | ||
20 | niro | 532 | |
21 | all: | ||
22 | for n in $(SUBDIRS); do make -C $$n; done | ||
23 | make -C klibc | ||
24 | make -C busybox defconfig | ||
25 | make -C busybox | ||
26 | |||
27 | |||
28 | test: all | ||
29 | niro | 548 | for i in grubby busybox klibc; do make -C $$i test; done |
30 | niro | 532 | |
31 | install: | ||
32 | for n in $(SUBDIRS); do make -C $$n install DESTDIR=$(DESTDIR); done | ||
33 | niro | 545 | for i in etc/conf.d sbin usr/sbin $(mandir)/man8 $(docdir)/busybox $(docdir)/klibc; do \ |
34 | niro | 532 | if [ ! -d $(DESTDIR)/$$i ]; then \ |
35 | mkdir -p $(DESTDIR)/$$i; \ | ||
36 | fi; \ | ||
37 | done | ||
38 | sed 's/%VERSIONTAG%/$(VERSION)/' < mkinitrd > $(DESTDIR)/sbin/mkinitrd | ||
39 | install -m755 installkernel $(DESTDIR)/sbin/installkernel | ||
40 | chmod 755 $(DESTDIR)/sbin/mkinitrd | ||
41 | install -m644 mkinitrd.8 $(DESTDIR)/$(mandir)/man8/mkinitrd.8 | ||
42 | install -m644 mkinitrd.confd $(DESTDIR)/etc/conf.d/mkinitrd | ||
43 | install -m755 busybox/busybox $(DESTDIR)/usr/sbin/busybox.mkinitrd | ||
44 | niro | 555 | cat busybox/LICENSE | gzip -9 > $(DESTDIR)/$(docdir)/busybox |
45 | cat busybox/README | gzip -9 > $(DESTDIR)/$(docdir)/busybox | ||
46 | niro | 546 | zcat busybox/TODO | gzip -9 > $(DESTDIR)/$(docdir)/busybox |
47 | niro | 532 | install -m755 klibc/usr/kinit/run-init/static/run-init $(DESTDIR)/usr/sbin/run-init.mkinitrd |
48 | niro | 555 | cat klibc/usr/klibc/README | gzip -9 > $(DESTDIR)/$(docdir)/klibc |
49 | cat klibc/usr/klibc/LICENSE | gzip -9 > $(DESTDIR)/$(docdir)/klibc | ||
50 | niro | 532 | |
51 | clean: | ||
52 | for n in $(SUBDIRS) busybox klibc isolinux; do make -C $$n clean; done | ||
53 | |||
54 | mrproper: clean | ||
55 | make -C busybox mrproper | ||
56 | make -C klibc mrproper |