build: avoid non-portable install -D

BSD install doesn't understand the -D option. Use a separate install
command to create the directory (with the -d option) before installing
the file.

Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Brian Gernhardt
2014-05-30 23:29:27 -04:00
committed by Felipe Contreras
parent 22d9794c11
commit 0de8aa91f4

View File

@@ -19,9 +19,11 @@ clean:
D = $(DESTDIR)
install: install-doc
install -D -m 755 git-remote-hg $(D)$(bindir)/git-remote-hg
install -d -m 755 $(D)$(bindir)/
install -m 755 git-remote-hg $(D)$(bindir)/git-remote-hg
install-doc: doc
install -D -m 644 doc/git-remote-hg.1 $(D)$(mandir)/git-remote-hg.1
install -d -m 755 $(D)$(mandir)/
install -m 644 doc/git-remote-hg.1 $(D)$(mandir)/git-remote-hg.1
.PHONY: all test install install-doc clean