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 /english/partners | |
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 'english/partners')
-rw-r--r-- | english/partners/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/english/partners/Makefile b/english/partners/Makefile index 521a801e7ce..0a80facc3fe 100644 --- a/english/partners/Makefile +++ b/english/partners/Makefile @@ -6,15 +6,15 @@ CUR_DIR=partners GETTEXTFILES += partners.mo # list any subdirectories in the following variable. If a listed directory # exists, it must contain a Makefile, or make gives an error -YEARS:=$(wildcard [12][0-9][0-9][0-9]) +YEARS:=$(sort $(wildcard [12][0-9][0-9][0-9])) SUBS=$(YEARS) images include $(WMLBASE)/Make.lang -index.$(LANGUAGE).html: index.wml $(wildcard $(CUR_YEAR)/index.wml) \ - $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/index.wml) \ - $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/images) \ - $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/partners.data) \ +index.$(LANGUAGE).html: index.wml $(sort $(wildcard $(CUR_YEAR)/index.wml)) \ + $(sort $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/index.wml)) \ + $(sort $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/images)) \ + $(sort $(wildcard $(ENGLISHSRCDIR)/partners/$(CUR_YEAR)/partners.data)) \ $(TEMPLDIR)/template.wml \ $(ENGLISHSRCDIR)/partners/index.include \ $(ENGLISHSRCDIR)/partners/partners.def $(GETTEXTDEP) |