mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-03-21 17:11:30 +01:00
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>
30 lines
539 B
Makefile
30 lines
539 B
Makefile
prefix := $(HOME)
|
|
|
|
bindir := $(prefix)/bin
|
|
mandir := $(prefix)/share/man/man1
|
|
|
|
all: doc
|
|
|
|
doc: doc/git-remote-hg.1
|
|
|
|
test:
|
|
$(MAKE) -C test
|
|
|
|
doc/git-remote-hg.1: doc/git-remote-hg.txt
|
|
a2x -d manpage -f manpage $<
|
|
|
|
clean:
|
|
$(RM) doc/git-remote-hg.1
|
|
|
|
D = $(DESTDIR)
|
|
|
|
install: install-doc
|
|
install -d -m 755 $(D)$(bindir)/
|
|
install -m 755 git-remote-hg $(D)$(bindir)/git-remote-hg
|
|
|
|
install-doc: doc
|
|
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
|