diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-05 22:17:20 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-06 21:29:16 -0700 |
commit | d79073922fcb8c8a0bd57112817a2154f1ed05c1 (patch) | |
tree | 0f9efd55ac6f893f8801a9b8321b20fd21b24923 /Documentation/Makefile | |
parent | 63b4b7a7ed657f406eb274f88a7e2c61fd6fe958 (diff) | |
download | git-d79073922fcb8c8a0bd57112817a2154f1ed05c1.tar.gz |
Documentation: tighten dependency for git.{html,txt}
Every time _any_ documentation page changed, cmds-*.txt files
were regenerated, which caused git.{html,txt} to be remade. Try
not to update cmds-*.txt files if their new contents match the
old ones.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r-- | Documentation/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 7db3fb992f..ad87736b0c 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -85,14 +85,17 @@ cmds_txt = cmds-ancillaryinterrogators.txt \ cmds-purehelpers.txt \ cmds-foreignscminterface.txt -$(cmds_txt): cmd-list.perl $(MAN1_TXT) +$(cmds_txt): cmd-list.made + +cmd-list.made: cmd-list.perl $(MAN1_TXT) perl ./cmd-list.perl + date >$@ git.7 git.html: git.txt core-intro.txt clean: rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html doc.dep - rm -f $(cmds_txt) + rm -f $(cmds_txt) *.made %.html : %.txt $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $< |