[PATCH] Use '-d' as the first flag to 'install'
authorPeter Eriksen <s022018@student.dtu.dk>
Wed, 14 Sep 2005 10:41:52 +0000 (12:41 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 15 Sep 2005 19:46:31 +0000 (12:46 -0700)
... in order to please Solaris 'install'. GNU install is not harmed
with this.

[jc: Documentation/Makefile also fixed.]

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/Makefile
Makefile
index b81a6a2c72c93725c48fbbf9e7ec25e80052e87a..37b7fcb97d659fd25246af4c124030d22554fc99 100644 (file)
@@ -45,7 +45,7 @@ man1: $(DOC_MAN1)
 man7: $(DOC_MAN7)
 
 install:
-       $(INSTALL) -m755 -d $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
+       $(INSTALL) -d -m755 $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
        $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
        $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
 
index a851f56466b3867534693f12b204441ba0537614..88189fb1202828b77226ec74be12d6a5d8ce446c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -288,12 +288,12 @@ check:
 ### Installation rules
 
 install: $(PROGRAMS) $(SCRIPTS)
-       $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
+       $(INSTALL) -d -m755 $(DESTDIR)$(bindir)
        $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
        $(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
        sh ./cmd-rename.sh $(DESTDIR)$(bindir)
        $(MAKE) -C templates install
-       $(INSTALL) -m755 -d $(DESTDIR)$(GIT_PYTHON_DIR)
+       $(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
        $(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)
 
 install-doc: