]> pd.if.org Git - startuptools/blob - Makefile
startup program improvements
[startuptools] / Makefile
1 PRG=daemon chdir chids
2 CFLAGS=-Wall -Wno-parentheses
3 RCSCRIPTS=example.rc functions.rc network
4 ETC=rc.conf rc.local rc.multi rc.shutdown rc.single rc.sysinit
5
6 all:    $(PRG)
7
8 clean:
9         rm -f *.o $(PRG)
10
11 daemon.o: daemon.c exec.c
12 chids.o: chids.c exec.c
13
14 install: install-scripts
15
16 install-scripts:
17          install -d -m755 $(DESTDIR)/etc/rc.d
18          install -d -m755 $(DESTDIR)/sbin
19          install -m755 $(addprefix scripts/,$(ETC)) $(DESTDIR)/etc
20          install -m644 scripts/inittab $(DESTDIR)/etc
21          install -m755 $(addprefix scripts/,$(RCSCRIPTS)) $(DESTDIR)/etc/rc.d
22          install -m755 $(addprefix scripts/,ifup ifdown) $(DESTDIR)/sbin
23          install -d -m755 $(DESTDIR)/etc/networks
24          install -m755 scripts/localhost.net $(DESTDIR)/etc/networks/localhost
25          install -D -m644 scripts/example.rc $(DESTDIR)/usr/share/startuptools/example.rc
26
27 tarball:
28         rm startuptools.tar.gz ; cd ..; tar -czf startuptools.tar.gz startuptools; mv startuptools.tar.gz startuptools
29