From f0735327127a921d3ee96f51b84f23208bc6f445 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 27 Feb 2013 21:44:22 +0000 Subject: [PATCH] created install target for startup scripts --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 + -- 2.40.0