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