]> pd.if.org Git - startuptools/blob - Makefile
make rc.shutdown actually shutdown
[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 install: install-scripts
12
13 install-scripts:
14          install -d -m755 $(DESTDIR)/etc/rc.d
15          install -d -m755 $(DESTDIR)/sbin
16          install -m755 $(addprefix scripts/,$(ETC)) $(DESTDIR)/etc
17          install -m644 scripts/inittab $(DESTDIR)/etc
18          install -m755 $(addprefix scripts/,$(RCSCRIPTS)) $(DESTDIR)/etc/rc.d
19          install -m755 $(addprefix scripts/,ifup ifdown) $(DESTDIR)/sbin
20          install -d -m755 $(DESTDIR)/etc/networks
21          install -m755 scripts/localhost.net $(DESTDIR)/etc/networks/localhost
22
23 tarball:
24         rm startuptools.tar.gz ; cd ..; tar -czf startuptools.tar.gz startuptools; mv startuptools.tar.gz startuptools
25