X-Git-Url: https://pd.if.org/git/?p=startuptools;a=blobdiff_plain;f=Makefile;h=0c1b74094d6b8784244e17996171799c403d99e1;hp=f57d26bb2093514543b21acca55a85bbae885671;hb=HEAD;hpb=11c12539d9ee64b816ad2e734b499d7ce1e83ac9 diff --git a/Makefile b/Makefile index f57d26b..0c1b740 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,31 @@ -PRG=daemon chdir chids +PRG=daemon chdir setid 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) + +daemon.o: daemon.c exec.c +setid.o: setid.c exec.c + +install: all install-scripts + install -d -m755 $(DESTDIR)/sbin + install setid $(DESTDIR)/sbin + +install-scripts: + install -d -m755 $(DESTDIR)/etc/rc.d + install -d -m755 $(DESTDIR)/sbin + 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 + install -d -m755 $(DESTDIR)/etc/networks + install -m755 scripts/localhost.net $(DESTDIR)/etc/networks/localhost + install -D -m644 scripts/example.rc $(DESTDIR)/usr/share/startuptools/example.rc + +tarball: + rm startuptools.tar.gz ; cd ..; tar -czf startuptools.tar.gz startuptools; mv startuptools.tar.gz startuptools +