mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-03-23 01:50:03 +01:00
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:
committed by
Felipe Contreras
parent
22d9794c11
commit
0de8aa91f4
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user