Adjust makefile to make sure the install directories are created before files are copied into them.

This commit is contained in:
Petter Reinholdtsen 2009-11-14 21:09:19 +00:00
parent cd2937d3b7
commit 483db5bc72
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@ sysvinit (2.88dsf) UNRELEASED; urgency=low
* Revert change from Fedora/RedHat where the now obsolete command * Revert change from Fedora/RedHat where the now obsolete command
INIT_CMD_CHANGECONS was introduced. Based on feedback and patch INIT_CMD_CHANGECONS was introduced. Based on feedback and patch
from Bill Nottingham. 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 -- Petter Reinholdtsen <pere@hungry.com> Sun, 12 Jul 2009 19:58:10 +0200

View File

@ -127,6 +127,8 @@ clobber: cleanobjs
distclean: clobber distclean: clobber
install: install:
$(INSTALL_EXEC) -d $(ROOT)/bin/ $(ROOT)/sbin/
$(INSTALL_EXEC) -d $(ROOT)/usr/bin/
for i in $(BIN); do \ for i in $(BIN); do \
$(STRIP) $$i ; \ $(STRIP) $$i ; \
$(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \ $(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \
@ -147,7 +149,11 @@ install:
if [ ! -f $(ROOT)/usr/bin/lastb ]; then \ if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
ln -sf last $(ROOT)/usr/bin/lastb; \ ln -sf last $(ROOT)/usr/bin/lastb; \
fi fi
$(INSTALL_EXEC) -d $(ROOT)/usr/include/
$(INSTALL_DATA) initreq.h $(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 \ for i in $(MAN1); do \
$(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man1/; \ $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man1/; \
done done