]> pd.if.org Git - startuptools/blobdiff - Makefile
fix empty module list handling
[startuptools] / Makefile
index acf459c2b079c06364735dbce67e3984d88ab25e..0c1b74094d6b8784244e17996171799c403d99e1 100644 (file)
--- 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