Contents of /trunk/magellan-initscripts/Makefile
Parent Directory | Revision Log
Revision 454 -
(show annotations)
(download)
Sun Apr 1 01:09:01 2007 UTC (17 years, 7 months ago) by niro
File size: 3119 byte(s)
Sun Apr 1 01:09:01 2007 UTC (17 years, 7 months ago) by niro
File size: 3119 byte(s)
- added sysctl.conf
1 | # Magellan Initscripts |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/Makefile,v 1.4 2007-04-01 01:09:01 niro Exp $ |
3 | |
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 | sysctl.conf; \ |
61 | do \ |
62 | install -m 0644 etc/$${file} $(DESTDIR)$(sysconfdir); \ |
63 | done |
64 | echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(sysconfdir)/mageversion |
65 | |
66 | |
67 | install-confd: |
68 | install -m 0644 etc/conf.d/kernel $(DESTDIR)$(sysconfdir)/conf.d |
69 | install -m 0644 etc/conf.d/net.eth0 $(DESTDIR)$(sysconfdir)/conf.d |
70 | install -m 0644 etc/sysconfig/rc $(DESTDIR)$(sysconfdir)/sysconfig |
71 | |
72 | install-modulesd: |
73 | install -m 0644 etc/modules.autoload.d/kernel-2.4 \ |
74 | $(DESTDIR)$(sysconfdir)/modules.autoload.d |
75 | install -m 0644 etc/modules.autoload.d/kernel-2.6 \ |
76 | $(DESTDIR)$(sysconfdir)/modules.autoload.d |
77 | install -m 0644 etc/modules.d/aliases $(DESTDIR)$(sysconfdir)/modules.d |
78 | install -m 0644 etc/modules.d/i386 $(DESTDIR)$(sysconfdir)/modules.d |
79 | |
80 | install-initd: |
81 | for script in checkfs \ |
82 | cleanfs \ |
83 | consolefont \ |
84 | functions \ |
85 | halt \ |
86 | hwdetect \ |
87 | loadkeys \ |
88 | localnet \ |
89 | modules \ |
90 | mountfs \ |
91 | network \ |
92 | rc \ |
93 | reboot \ |
94 | sendsignals \ |
95 | setclock \ |
96 | swap \ |
97 | sysctl \ |
98 | template; \ |
99 | do \ |
100 | install -m 0755 etc/rc.d/init.d/$${script} $(DESTDIR)$(initdir)/${script}; \ |
101 | done |
102 | |
103 | |
104 | install-udevd: |
105 | install -m 0644 lib/udev-state/devices.tar.bz2 $(DESTDIR)$(libdir)/udev-state |
106 | |
107 | install-bins: |
108 | install -m 0755 start-stop-daemon $(DESTDIR)$(sbindir) |
109 | install -m 0755 sbin/modules-update $(DESTDIR)$(sbindir) |
110 | install -m 0755 sbin/rc-config $(DESTDIR)$(sbindir) |
111 | |
112 | install-symlinks: |
113 | ln -snf rc.d/init.d $(DESTDIR)$(sysconfdir)/init.d |
114 | |
115 | install: create-dirs \ |
116 | install-etc \ |
117 | install-confd \ |
118 | install-modulesd \ |
119 | install-initd \ |
120 | install-udevd \ |
121 | install-bins \ |
122 | install-symlinks |
123 | |
124 | .PHONY: all install |