Magellan Linux

Contents of /trunk/busybox-initscripts/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1283 - (show annotations) (download)
Thu May 12 18:42:18 2011 UTC (13 years, 6 months ago) by niro
File size: 2324 byte(s)
-fixed Makefile
1 # Magellan Busybox-Initscripts
2 # $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/Makefile,v 1.3 2008-06-10 21:06:19 niro Exp $
3
4 DESTDIR=
5
6 sysconfdir=/etc
7 sbindir=/sbin
8 rcdir=$(sysconfdir)/rc.d
9 initdir=$(rcdir)/init.d
10
11 all: install
12
13 clean:
14 rm -f src/*.o
15 if [ -f start-stop-daemon ]; then rm start-stop-daemon; fi
16
17 create-dirs:
18 install -d -m 0755 $(DESTDIR)$(sysconfdir)
19 install -d -m 0755 $(DESTDIR)$(sysconfdir)/conf.d
20 install -d -m 0755 $(DESTDIR)$(sysconfdir)/modprobe.d
21 install -d -m 0755 $(DESTDIR)$(rcdir)/rcshutdown.d
22 install -d -m 0755 $(DESTDIR)$(rcdir)/rcboot.d
23 install -d -m 0755 $(DESTDIR)$(rcdir)/rcsysinit.d
24 install -d -m 0755 $(DESTDIR)$(initdir)
25 install -d -m 0755 $(DESTDIR)$(sbindir)
26
27 install-etc:
28 for file in DIR_COLORS \
29 fstab \
30 group \
31 hostname \
32 hosts \
33 inittab \
34 inputrc \
35 issue \
36 passwd \
37 profile \
38 shells; \
39 do \
40 install -m 0644 etc/$${file} $(DESTDIR)$(sysconfdir); \
41 done
42 install -m 0400 etc/shadow $(DESTDIR)$(sysconfdir)
43 echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(sysconfdir)/mageversion
44
45 install-confd:
46 install -m 0644 conf.d/clock $(DESTDIR)$(sysconfdir)/conf.d
47 install -m 0644 conf.d/editor $(DESTDIR)$(sysconfdir)/conf.d
48 install -m 0644 conf.d/kernel $(DESTDIR)$(sysconfdir)/conf.d
49 install -m 0644 conf.d/keymap $(DESTDIR)$(sysconfdir)/conf.d
50 install -m 0644 conf.d/net.routes $(DESTDIR)$(sysconfdir)/conf.d
51 install -m 0644 conf.d/net.sample $(DESTDIR)$(sysconfdir)/conf.d
52 install -m 0644 conf.d/rc $(DESTDIR)$(sysconfdir)/conf.d
53
54 install-modulesd:
55 install -m 0644 etc/modules.autoload $(DESTDIR)$(sysconfdir)
56 install -m 0644 modprobe.d/aliases.conf $(DESTDIR)$(sysconfdir)/modprobe.d
57 install -m 0644 modprobe.d/i386.conf $(DESTDIR)$(sysconfdir)/modprobe.d
58
59 install-initd:
60 for script in cleanfs \
61 functions \
62 loadkeys \
63 localnet \
64 modules \
65 mountfs \
66 network \
67 rc \
68 setclock \
69 swap; \
70 do \
71 install -m 0755 rc/$${script} $(DESTDIR)$(initdir)/${script}; \
72 done
73
74
75 install-bins:
76 install -m 0755 sbin/modules-update $(DESTDIR)$(sbindir)
77 install -m 0755 sbin/rc-config $(DESTDIR)$(sbindir)
78
79 install-symlinks:
80 ln -snf rc.d/init.d $(DESTDIR)$(sysconfdir)/init.d
81
82 install: create-dirs \
83 install-etc \
84 install-confd \
85 install-modulesd \
86 install-initd \
87 install-bins \
88 install-symlinks
89
90 .PHONY: all install