X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=acf459c2b079c06364735dbce67e3984d88ab25e;hb=05b7411b8c549890302661a6fff2172cd83c0105;hp=f57d26bb2093514543b21acca55a85bbae885671;hpb=11c12539d9ee64b816ad2e734b499d7ce1e83ac9;p=startuptools diff --git a/Makefile b/Makefile index f57d26b..acf459c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,26 @@ 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 + 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 +