subtree: make install targets depend on build targets

Now that we have build targets let the install targets depend on them. Also make the targets phony. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Hesse committed Oct 16, 2018 at 09:56 UTC 744f7c4c314dc0e7816ac05520e8358c8318187a
1 file changed +3 -3
contrib/subtree/Makefile
+3 -3
@@ -69,11 +69,11 @@ install: $(GIT_SUBTREE)
69
70 install-doc: install-man install-html
71
72 -install-man: $(GIT_SUBTREE_DOC)
72 +install-man: man
73 $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
74 $(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
75
76 -install-html: $(GIT_SUBTREE_HTML)
76 +install-html: html
77 $(INSTALL) -d -m 755 $(DESTDIR)$(htmldir)
78 $(INSTALL) -m 644 $^ $(DESTDIR)$(htmldir)
79
@@ -98,4 +98,4 @@ clean:
98 $(RM) $(GIT_SUBTREE)
99 $(RM) *.xml *.html *.1
100
101 -.PHONY: FORCE
101 +.PHONY: FORCE man html install-man install-html