Skip to content

Commit 19bcc73

Browse files
avargitster
authored andcommitted
Documentation/Makefile: make doc.dep dependencies a variable again
Re-introduce a variable to declare what *.txt files need to be considered for the purposes of scouring files to generate a dependency graph of includes. When doc.dep was introduced in a5ae8e6 (Fix documentation dependency generation., 2005-11-07) we had such a variable called TEXTFILES, but it was refactored away just a few commits after that in fb612d5 (Documentation: fix dependency generation., 2005-11-07). I'm planning to add more wildcards here, so let's bring it back. I'm not calling it TEXTFILES because we e.g. don't consider Documentation/technical/*.txt when generating the graph (they don't use includes). Let's instead call it DOC_DEP_TXT. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 824c621 commit 19bcc73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ MAN1_TXT =
33
MAN5_TXT =
44
MAN7_TXT =
55
HOWTO_TXT =
6+
DOC_DEP_TXT =
67
TECH_DOCS =
78
ARTICLES =
89
SP_ARTICLES =
@@ -45,6 +46,9 @@ MAN7_TXT += gitworkflows.txt
4546

4647
HOWTO_TXT += $(wildcard howto/*.txt)
4748

49+
DOC_DEP_TXT += $(wildcard *.txt)
50+
DOC_DEP_TXT += $(wildcard config/*.txt)
51+
4852
ifdef MAN_FILTER
4953
MAN_TXT = $(filter $(MAN_FILTER),$(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT))
5054
else
@@ -288,7 +292,7 @@ docdep_prereqs = \
288292
mergetools-list.made $(mergetools_txt) \
289293
cmd-list.made $(cmds_txt)
290294

291-
doc.dep : $(docdep_prereqs) $(wildcard *.txt) $(wildcard config/*.txt) build-docdep.perl
295+
doc.dep : $(docdep_prereqs) $(DOC_DEP_TXT) build-docdep.perl
292296
$(QUIET_GEN)$(RM) $@+ $@ && \
293297
$(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \
294298
mv $@+ $@

0 commit comments

Comments
 (0)