Annotation of /trunk/magellan-initscripts/Makefile
Parent Directory
|
Revision Log
Revision 367 -
(hide annotations)
(download)
Fri Apr 14 13:56:49 2006 UTC (18 years, 1 month ago) by niro
File size: 3103 byte(s)
Fri Apr 14 13:56:49 2006 UTC (18 years, 1 month ago) by niro
File size: 3103 byte(s)
added sysctl
1 | niro | 362 | # Magellan Initscripts |
2 | niro | 367 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/Makefile,v 1.3 2006-04-14 13:56:49 niro Exp $ |
3 | niro | 362 | |
4 | CC=gcc | ||
5 | CFLAGS=-Os -Wall | ||
6 | LDFLAGS=-s | ||
7 | |||
8 | DESTDIR= | ||
9 | |||
10 | sysconfdir=/etc | ||
11 | libdir=/lib | ||
12 | sbindir=/sbin | ||
13 | rcdir=$(sysconfdir)/rc.d | ||
14 | initdir=$(rcdir)/init.d | ||
15 | |||
16 | all: start-stop-daemon | ||
17 | |||
18 | start-stop-daemon: src/start-stop-daemon.o | ||
19 | $(CC) $(CFLAGS) -o start-stop-daemon src/start-stop-daemon.o $(LDFLAGS) | ||
20 | |||
21 | src/start-stop-daemon.o: src/start-stop-daemon.c src/headers.h | ||
22 | |||
23 | clean: | ||
24 | rm -f src/*.o | ||
25 | if [ -f start-stop-daemon ]; then rm start-stop-daemon; fi | ||
26 | |||
27 | create-dirs: | ||
28 | install -d -m 0755 $(DESTDIR)$(sysconfdir) | ||
29 | install -d -m 0755 $(DESTDIR)$(sysconfdir)/conf.d | ||
30 | install -d -m 0755 $(DESTDIR)$(sysconfdir)/modules.autoload.d | ||
31 | install -d -m 0755 $(DESTDIR)$(sysconfdir)/modules.d | ||
32 | install -d -m 0755 $(DESTDIR)$(sysconfdir)/sysconfig | ||
33 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc0.d | ||
34 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc1.d | ||
35 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc2.d | ||
36 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc3.d | ||
37 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc4.d | ||
38 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc5.d | ||
39 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc6.d | ||
40 | install -d -m 0755 $(DESTDIR)$(rcdir)/rcsysinit.d | ||
41 | install -d -m 0755 $(DESTDIR)$(initdir) | ||
42 | install -d -m 0755 $(DESTDIR)$(libdir)/udev-state | ||
43 | install -d -m 0755 $(DESTDIR)$(sbindir) | ||
44 | |||
45 | install-etc: | ||
46 | for file in DIR_COLORS \ | ||
47 | fstab \ | ||
48 | group \ | ||
49 | hostname \ | ||
50 | hosts \ | ||
51 | inittab \ | ||
52 | inputrc \ | ||
53 | issue \ | ||
54 | passwd \ | ||
55 | profile \ | ||
56 | protocols \ | ||
57 | rc.config \ | ||
58 | services \ | ||
59 | shells; \ | ||
60 | do \ | ||
61 | install -m 0644 etc/$${file} $(DESTDIR)$(sysconfdir); \ | ||
62 | done | ||
63 | echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(sysconfdir)/mageversion | ||
64 | |||
65 | |||
66 | install-confd: | ||
67 | install -m 0644 etc/conf.d/kernel $(DESTDIR)$(sysconfdir)/conf.d | ||
68 | install -m 0644 etc/conf.d/net.eth0 $(DESTDIR)$(sysconfdir)/conf.d | ||
69 | install -m 0644 etc/sysconfig/rc $(DESTDIR)$(sysconfdir)/sysconfig | ||
70 | |||
71 | install-modulesd: | ||
72 | install -m 0644 etc/modules.autoload.d/kernel-2.4 \ | ||
73 | $(DESTDIR)$(sysconfdir)/modules.autoload.d | ||
74 | install -m 0644 etc/modules.autoload.d/kernel-2.6 \ | ||
75 | $(DESTDIR)$(sysconfdir)/modules.autoload.d | ||
76 | install -m 0644 etc/modules.d/aliases $(DESTDIR)$(sysconfdir)/modules.d | ||
77 | install -m 0644 etc/modules.d/i386 $(DESTDIR)$(sysconfdir)/modules.d | ||
78 | |||
79 | install-initd: | ||
80 | for script in checkfs \ | ||
81 | cleanfs \ | ||
82 | consolefont \ | ||
83 | functions \ | ||
84 | halt \ | ||
85 | hwdetect \ | ||
86 | loadkeys \ | ||
87 | localnet \ | ||
88 | modules \ | ||
89 | mountfs \ | ||
90 | network \ | ||
91 | rc \ | ||
92 | reboot \ | ||
93 | sendsignals \ | ||
94 | setclock \ | ||
95 | swap \ | ||
96 | niro | 367 | sysctl \ |
97 | niro | 362 | template; \ |
98 | do \ | ||
99 | install -m 0755 etc/rc.d/init.d/$${script} $(DESTDIR)$(initdir)/${script}; \ | ||
100 | done | ||
101 | |||
102 | |||
103 | install-udevd: | ||
104 | install -m 0644 lib/udev-state/devices.tar.bz2 $(DESTDIR)$(libdir)/udev-state | ||
105 | |||
106 | install-bins: | ||
107 | install -m 0755 start-stop-daemon $(DESTDIR)$(sbindir) | ||
108 | install -m 0755 sbin/modules-update $(DESTDIR)$(sbindir) | ||
109 | install -m 0755 sbin/rc-config $(DESTDIR)$(sbindir) | ||
110 | |||
111 | niro | 365 | install-symlinks: |
112 | ln -snf rc.d/init.d $(DESTDIR)$(sysconfdir)/init.d | ||
113 | |||
114 | niro | 362 | install: create-dirs \ |
115 | install-etc \ | ||
116 | install-confd \ | ||
117 | install-modulesd \ | ||
118 | install-initd \ | ||
119 | install-udevd \ | ||
120 | niro | 365 | install-bins \ |
121 | install-symlinks | ||
122 | niro | 362 | |
123 | .PHONY: all install |