X-Git-Url: https://pd.if.org/git/?p=startuptools;a=blobdiff_plain;f=Makefile;h=0c1b74094d6b8784244e17996171799c403d99e1;hp=4f129b9168685159c58bae714ca68d7a8929720a;hb=HEAD;hpb=8979c1d94d3d62e88f610f8abc91041241b56b17 diff --git a/Makefile b/Makefile index 4f129b9..0c1b740 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -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 @@ -8,7 +8,12 @@ all: $(PRG) clean: rm -f *.o $(PRG) -install: install-scripts +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 @@ -19,6 +24,7 @@ install-scripts: 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