Magellan Linux

Contents of /tags/init-0_7_1/sysvinit/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1450 - (show annotations) (download)
Wed Aug 3 07:54:42 2011 UTC (12 years, 8 months ago) by niro
File size: 955 byte(s)
tagged 'init-0_7_1'
1 # $Id$
2
3 all: start-stop-daemon
4
5 include ../Makefile.inc
6
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 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
20 install -d -m 0755 $(DESTDIR)$(INITDIR)
21 for file in rc/*; do install -m 0755 $${file} $(DESTDIR)$(INITDIR)/; done
22 # symlink rc.d/init.d to /etc/init.d
23 ln -snf rc.d/init.d $(DESTDIR)$(SYSCONFDIR)/init.d
24
25 # install udev state
26 install -d -m 0755 $(DESTDIR)$(LIBDIR)/udev/state
27 install -m 0644 udev-state/devices.tar.bz2 $(DESTDIR)$(LIBDIR)/udev/state
28
29 # install start-stop-daemon
30 install -m 0755 start-stop-daemon $(DESTDIR)$(SBINDIR)
31
32 .PHONY: all install_sysvinit general