@matheusbsbs / matheus-bagliano / commits / b163512d4e
Fork 0

Fix documentation dependency.

Randal L. Schwartz noticed that 'make install' does not rebuild what is installed. Make the 'install' rule depend on 'man'. I noticed also 'touch' of the source files were used to express include dependencies, which is a no-no. Rewrite it to do dependencies properly, and add missing include dependencies while we are at it. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 21, 2005 at 12:29 UTC b163512d4eb36ee946908b682c7863658c5a8db4
1 file changed +5 -3
Documentation/Makefile
+5 -3
@@ -44,14 +44,16 @@ man: man1 man7
44 man1: $(DOC_MAN1)
45 man7: $(DOC_MAN7)
46
47 -install:
47 +install: man
48 $(INSTALL) -d -m755 $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
49 $(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
50 $(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)
51
52 # 'include' dependencies
53 -git-diff-%.txt: diff-format.txt diff-options.txt
54 - touch $@
53 +$(patsubst %.txt,%.1,$(wildcard git-diff-*.txt)): \
54 + diff-format.txt diff-options.txt
55 +$(patsubst %,%.1,git-fetch git-pull git-push): pull-fetch-param.txt
56 +git.7: ../README
57
58 clean:
59 rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html