diff options
author | Cyril Brulebois <kibi@debian.org> | 2019-03-11 00:36:30 +0000 |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2019-03-11 01:33:54 +0000 |
commit | 35e5a08057ab8953dcfaceab9f623c52be7a44e4 (patch) | |
tree | fe1626fe132cc5f38dc6c94269f2008fbca0381e /chinese/News | |
parent | e0496a1974f81c11d576b507c2c2a1d39538d44e (diff) |
Reduce entropy by sorting the output of all $(wildcard …) calls
Introducing a function (i.e. sorted_wildcard) seemed to make sense at
first but it would need to be defined in all Makefiles, before getting
used. That's why a “replace all occurrences” approach was preferred in
the end.
Many occurrences aren't going to make a difference anyway, because they
are about documenting target dependencies. But replacing everything
means it's easier to check later on, in case entropy comes back.
This file needs a slightly different diff because the Makefile snippet
is embedded in a Perl script: english/security/parse-advisory.pl
Diffstat (limited to 'chinese/News')
-rw-r--r-- | chinese/News/weekly/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chinese/News/weekly/Makefile b/chinese/News/weekly/Makefile index 980a8f8307f..71814fae659 100644 --- a/chinese/News/weekly/Makefile +++ b/chinese/News/weekly/Makefile @@ -28,8 +28,8 @@ clean:: $(IGNORE)find . -type f -name \*.$(LANGUAGE)-??.html | xargs rm -f index.zh-cn.html index.zh-hk.html index.zh-tw.html: index.wml \ - $(wildcard $(CUR_YEAR)/*/index.wml) \ - $(wildcard $(ENGLISHSRCDIR)/News/weekly/$(CUR_YEAR)/*/index.wml) \ + $(sort $(wildcard $(CUR_YEAR)/*/index.wml)) \ + $(sort $(wildcard $(ENGLISHSRCDIR)/News/weekly/$(CUR_YEAR)/*/index.wml)) \ $(ENGLISHSRCDIR)/$(CUR_DIR)/CURRENT-ISSUE-IS \ $(TEMPLDIR)/weeklynews/header.wml \ $(TEMPLDIR)/weeklynews/index.wml \ @@ -37,8 +37,8 @@ index.zh-cn.html index.zh-hk.html index.zh-tw.html: index.wml \ [0-9]*/index.zh-cn.html [0-9]*/index.zh-hk.html [0-9]*/index.zh-tw.html: \ $(shell find $* -name index.wml) \ - $(wildcard 1999/*/index.wml) \ - $(wildcard $(ENGLISHSRCDIR)/News/weekly/$*/*/index.wml) \ + $(sort $(wildcard 1999/*/index.wml)) \ + $(sort $(wildcard $(ENGLISHSRCDIR)/News/weekly/$*/*/index.wml)) \ $(TEMPLDIR)/weeklynews/header.wml \ $(TEMPLDIR)/weeklynews/index.wml \ $(TEMPLDIR)/weeklynews/footer.wml $(GETTEXTDEP) |