contrib/subtree: Make testing easier
Add some Makefile dependencies to ensure an updated git-subtree gets copied to the main area before testing begins. Signed-off-by: David A. Greene <greened@obbligato.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
David A. Greene committed
Jan 17, 2016 at 17:47 UTC
43cce5c8ed48ab955b3347f999cda7c1c33dde0a
1 file changed
+5
-1
contrib/subtree/Makefile
+5
-1
@@ -37,6 +37,7 @@ GIT_SUBTREE_DOC := git-subtree.1
37
GIT_SUBTREE_XML := git-subtree.xml
38
GIT_SUBTREE_TXT := git-subtree.txt
39
GIT_SUBTREE_HTML := git-subtree.html
40
+GIT_SUBTREE_TEST := ../../git-subtree
41
42
all:: $(GIT_SUBTREE)
43
@@ -71,7 +72,10 @@ $(GIT_SUBTREE_HTML): $(GIT_SUBTREE_TXT)
72
$(ASCIIDOC) -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
73
-agit_version=$(GIT_VERSION) $^
74
74
-test:
75
+$(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
76
+ cp $< $@
77
+
78
+test: $(GIT_SUBTREE_TEST)
79
$(MAKE) -C t/ test
80
81
clean: