PRG=daemon chdir chids
CFLAGS=-Wall -Wno-parentheses
+RCSCRIPTS=example.rc functions.rc network
+ETC=rc.conf rc.local rc.multi rc.shutdown rc.single rc.sysinit
all: $(PRG)
clean:
rm -f *.o $(PRG)
+
+install: install-scripts
+
+install-scripts:
+ install -d -m755 $(DESTDIR)/etc/rc.d
+ install -d -m755 $(DESTDIR)/sbin
+ cd scripts
+ install -m755 $(addprefix scripts/,$(ETC)) $(DESTDIR)/etc
+ install -m644 scripts/inittab $(DESTDIR)/etc
+ install -m755 $(addprefix scripts/,$(RCSCRIPTS)) $(DESTDIR)/etc/rc.d
+ install -m755 $(addprefix scripts/,ifup ifdown) $(DESTDIR)/sbin
+
+tarball:
+ rm startuptools.tar.gz ; cd ..; tar -czf startuptools.tar.gz startuptools; mv startuptools.tar.gz startuptools
+