Annotation of /tags/init-0_8_6/sysvinit/Makefile
Parent Directory | Revision Log
Revision 2388 -
(hide annotations)
(download)
Tue Jan 7 12:27:49 2014 UTC (10 years, 8 months ago) by niro
File size: 955 byte(s)
Tue Jan 7 12:27:49 2014 UTC (10 years, 8 months ago) by niro
File size: 955 byte(s)
tagged 'init-0_8_6'
1 | niro | 1388 | # $Id$ |
2 | |||
3 | niro | 1392 | all: start-stop-daemon |
4 | niro | 1388 | |
5 | niro | 1392 | include ../Makefile.inc |
6 | niro | 1388 | |
7 | start-stop-daemon: src/start-stop-daemon.o | ||
8 | $(CC) $(CFLAGS) -o start-stop-daemon src/start-stop-daemon.o $(LDFLAGS) | ||
9 | |||
10 | src/start-stop-daemon.o: src/start-stop-daemon.c src/headers.h | ||
11 | |||
12 | clean: | ||
13 | rm -f src/*.o | ||
14 | if [ -f start-stop-daemon ]; then rm start-stop-daemon; fi | ||
15 | |||
16 | niro | 1392 | install_sysvinit: general start-stop-daemon |
17 | install -d -m 0755 $(DESTDIR)$(RCDIR)/rc{0,1,2,3,4,5,6}.d | ||
18 | install -d -m 0755 $(DESTDIR)$(RCDIR)/rcsysinit.d | ||
19 | niro | 1388 | |
20 | niro | 1392 | install -d -m 0755 $(DESTDIR)$(INITDIR) |
21 | for file in rc/*; do install -m 0755 $${file} $(DESTDIR)$(INITDIR)/; done | ||
22 | niro | 1388 | # symlink rc.d/init.d to /etc/init.d |
23 | niro | 1392 | ln -snf rc.d/init.d $(DESTDIR)$(SYSCONFDIR)/init.d |
24 | niro | 1388 | |
25 | # install udev state | ||
26 | niro | 1392 | install -d -m 0755 $(DESTDIR)$(LIBDIR)/udev/state |
27 | install -m 0644 udev-state/devices.tar.bz2 $(DESTDIR)$(LIBDIR)/udev/state | ||
28 | niro | 1388 | |
29 | # install start-stop-daemon | ||
30 | niro | 1392 | install -m 0755 start-stop-daemon $(DESTDIR)$(SBINDIR) |
31 | niro | 1388 | |
32 | niro | 1392 | .PHONY: all install_sysvinit general |