Adjust makefile to make sure the install directories are created before files are...
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 14 Nov 2009 21:09:19 +0000 (21:09 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 14 Nov 2009 21:09:19 +0000 (21:09 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@9 456724a4-4300-0410-8514-c89748c515a2

doc/Changelog
src/Makefile

index bafbdb9e0baa0dc68c91f29db10b2074df195582..2aeab7ff19e48b97f79f0a2443a1a0a3566c2ac8 100644 (file)
@@ -3,6 +3,8 @@ sysvinit (2.88dsf) UNRELEASED; urgency=low
   * Revert change from Fedora/RedHat where the now obsolete command
     INIT_CMD_CHANGECONS was introduced.  Based on feedback and patch
     from Bill Nottingham.
+  * Adjust makefile to make sure the install directories are created
+    before files are copied into them.
 
  -- Petter Reinholdtsen <pere@hungry.com>  Sun, 12 Jul 2009 19:58:10 +0200
 
index c466bf858397899588fc226d37c0f09ec54cc367..0a9075e5029825036bcbce18524222fde33d0af9 100644 (file)
@@ -127,6 +127,8 @@ clobber:    cleanobjs
 distclean:     clobber
 
 install:
+               $(INSTALL_EXEC) -d $(ROOT)/bin/ $(ROOT)/sbin/
+               $(INSTALL_EXEC) -d $(ROOT)/usr/bin/
                for i in $(BIN); do \
                        $(STRIP) $$i ; \
                        $(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \
@@ -147,7 +149,11 @@ install:
                if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
                        ln -sf last $(ROOT)/usr/bin/lastb; \
                fi
+               $(INSTALL_EXEC) -d $(ROOT)/usr/include/
                $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
+               $(INSTALL_EXEC) -d $(ROOT)$(MANDIR)/man1/
+               $(INSTALL_EXEC) -d $(ROOT)$(MANDIR)/man5/
+               $(INSTALL_EXEC) -d $(ROOT)$(MANDIR)/man8/
                for i in $(MAN1); do \
                        $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man1/; \
                done