Annotation of /trunk/magellan-initscripts/Makefile
Parent Directory | Revision Log
Revision 785 -
(hide annotations)
(download)
Mon Dec 22 22:27:14 2008 UTC (15 years, 10 months ago) by niro
File size: 2937 byte(s)
Mon Dec 22 22:27:14 2008 UTC (15 years, 10 months ago) by niro
File size: 2937 byte(s)
-fixed Makefile
1 | niro | 362 | # Magellan Initscripts |
2 | niro | 785 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/Makefile,v 1.9 2008-12-22 22:27:14 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.d | ||
31 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc0.d | ||
32 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc1.d | ||
33 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc2.d | ||
34 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc3.d | ||
35 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc4.d | ||
36 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc5.d | ||
37 | install -d -m 0755 $(DESTDIR)$(rcdir)/rc6.d | ||
38 | install -d -m 0755 $(DESTDIR)$(rcdir)/rcsysinit.d | ||
39 | install -d -m 0755 $(DESTDIR)$(initdir) | ||
40 | niro | 694 | install -d -m 0755 $(DESTDIR)$(libdir)/udev/state |
41 | niro | 362 | install -d -m 0755 $(DESTDIR)$(sbindir) |
42 | |||
43 | install-etc: | ||
44 | for file in DIR_COLORS \ | ||
45 | fstab \ | ||
46 | group \ | ||
47 | hostname \ | ||
48 | hosts \ | ||
49 | inittab \ | ||
50 | inputrc \ | ||
51 | issue \ | ||
52 | passwd \ | ||
53 | profile \ | ||
54 | protocols \ | ||
55 | rc.config \ | ||
56 | services \ | ||
57 | niro | 454 | shells \ |
58 | sysctl.conf; \ | ||
59 | niro | 362 | do \ |
60 | install -m 0644 etc/$${file} $(DESTDIR)$(sysconfdir); \ | ||
61 | done | ||
62 | echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(sysconfdir)/mageversion | ||
63 | |||
64 | |||
65 | install-confd: | ||
66 | install -m 0644 etc/conf.d/kernel $(DESTDIR)$(sysconfdir)/conf.d | ||
67 | niro | 509 | install -m 0644 etc/conf.d/net.routes $(DESTDIR)$(sysconfdir)/conf.d |
68 | niro | 579 | install -m 0644 etc/conf.d/net.sample $(DESTDIR)$(sysconfdir)/conf.d |
69 | niro | 785 | install -m 0644 etc/conf.d/rc $(DESTDIR)$(sysconfdir)/sysconfig |
70 | niro | 362 | |
71 | install-modulesd: | ||
72 | niro | 693 | install -m 0644 etc/modules.autoload $(DESTDIR)$(sysconfdir) |
73 | niro | 362 | install -m 0644 etc/modules.d/aliases $(DESTDIR)$(sysconfdir)/modules.d |
74 | install -m 0644 etc/modules.d/i386 $(DESTDIR)$(sysconfdir)/modules.d | ||
75 | |||
76 | install-initd: | ||
77 | for script in checkfs \ | ||
78 | cleanfs \ | ||
79 | consolefont \ | ||
80 | functions \ | ||
81 | halt \ | ||
82 | hwdetect \ | ||
83 | loadkeys \ | ||
84 | localnet \ | ||
85 | modules \ | ||
86 | mountfs \ | ||
87 | network \ | ||
88 | rc \ | ||
89 | reboot \ | ||
90 | sendsignals \ | ||
91 | setclock \ | ||
92 | swap \ | ||
93 | niro | 367 | sysctl \ |
94 | niro | 362 | template; \ |
95 | do \ | ||
96 | install -m 0755 etc/rc.d/init.d/$${script} $(DESTDIR)$(initdir)/${script}; \ | ||
97 | done | ||
98 | |||
99 | |||
100 | install-udevd: | ||
101 | niro | 694 | install -m 0644 lib/udev-state/devices.tar.bz2 $(DESTDIR)$(libdir)/udev/state |
102 | niro | 362 | |
103 | install-bins: | ||
104 | install -m 0755 start-stop-daemon $(DESTDIR)$(sbindir) | ||
105 | install -m 0755 sbin/modules-update $(DESTDIR)$(sbindir) | ||
106 | install -m 0755 sbin/rc-config $(DESTDIR)$(sbindir) | ||
107 | |||
108 | niro | 365 | install-symlinks: |
109 | ln -snf rc.d/init.d $(DESTDIR)$(sysconfdir)/init.d | ||
110 | |||
111 | niro | 362 | install: create-dirs \ |
112 | install-etc \ | ||
113 | install-confd \ | ||
114 | install-modulesd \ | ||
115 | install-initd \ | ||
116 | install-udevd \ | ||
117 | niro | 365 | install-bins \ |
118 | install-symlinks | ||
119 | niro | 362 | |
120 | .PHONY: all install |