Skip to content

Commit 76b993a

Browse files
pcloudsgitster
authored andcommitted
Update makefile in preparation for Documentation/config/*.txt
config.txt is going to be broken down in smaller pieces and put under Documentation/config directory. Update build rules to take these files into account. A dummy file is added to make sure wildcard expansion is predictable (depending on shell setting it could expand to nothing or becomes a path if config directory is empty). The file will be deleted once the move is over. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 89e4fcb commit 76b993a

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Documentation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ docdep_prereqs = \
285285
mergetools-list.made $(mergetools_txt) \
286286
cmd-list.made $(cmds_txt)
287287

288-
doc.dep : $(docdep_prereqs) $(wildcard *.txt) build-docdep.perl
288+
doc.dep : $(docdep_prereqs) $(wildcard *.txt) $(wildcard config/*.txt) build-docdep.perl
289289
$(QUIET_GEN)$(RM) $@+ $@ && \
290290
$(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \
291291
mv $@+ $@

Documentation/config/dummy.txt

Whitespace-only changes.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ $(BUILT_INS): git$X
20682068

20692069
command-list.h: generate-cmdlist.sh command-list.txt
20702070

2071-
command-list.h: $(wildcard Documentation/git*.txt) Documentation/*config.txt
2071+
command-list.h: $(wildcard Documentation/git*.txt) Documentation/*config.txt Documentation/config/*.txt
20722072
$(QUIET_GEN)$(SHELL_PATH) ./generate-cmdlist.sh command-list.txt >$@+ && mv $@+ $@
20732073

20742074
SCRIPT_DEFINES = $(SHELL_PATH_SQ):$(DIFF_SQ):$(GIT_VERSION):\

generate-cmdlist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ print_config_list () {
8080
cat <<EOF
8181
static const char *config_name_list[] = {
8282
EOF
83-
grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt |
83+
grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
8484
sed '/deprecated/d; s/::$//; s/, */\n/g' |
8585
sort |
8686
while read line

0 commit comments

Comments
 (0)