aboutsummaryrefslogtreecommitdiffstats
path: root/english/CD/http-ftp
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2018-06-06 02:14:55 +0100
committerSteve McIntyre <steve@einval.com>2018-06-06 02:20:41 +0100
commit533db96be6c6b97b4bf26203b429f24b2ad56cb4 (patch)
treeb826f626f219ceeedbfadf2c8f14f6811aa89448 /english/CD/http-ftp
parentf035d5bf50874ad2e3c2b25aefcac111b4c5cbb0 (diff)
Major Makefile overhauls
Add rules to generate the git revs cache in Makefile.common, referenced as $(VCSREVCACHE) Add an extra order-only prerequisite on $(VCSREVCACHE) for ~all rules converting .wml to .html, so that we'll make sure we have a cache built up-front before we start building anything. More factorisation of various year-based Makefiles to use a common Make.year set of rules.
Diffstat (limited to 'english/CD/http-ftp')
-rw-r--r--english/CD/http-ftp/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/english/CD/http-ftp/Makefile b/english/CD/http-ftp/Makefile
index 4b698ae2258..3df1b352e91 100644
--- a/english/CD/http-ftp/Makefile
+++ b/english/CD/http-ftp/Makefile
@@ -9,12 +9,16 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
-%.$(LANGUAGE).html: %.wml $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/cdimage.wml
+# The "| $(VCSREVCACHE)" here is an order-only prerequisite - always
+# check that the prerequisite exists and is up to date, but don't
+# rebuild everything whenever it's updated - see
+# https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
+%.$(LANGUAGE).html: %.wml $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/cdimage.wml | $(VCSREVCACHE)
$(WML) $(<F)
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/cdimage.wml \
$(ENGLISHDIR)/CD/http-ftp/cdimage_mirrors.list \
- $(TEMPLDIR)/release_info.wml $(TEMPLDIR)/release_images.wml
+ $(TEMPLDIR)/release_info.wml $(TEMPLDIR)/release_images.wml | $(VCSREVCACHE)
ifeq "$(LANGUAGE)" "en"
$(ENGLISHDIR)/CD/http-ftp/cdimage_mirrors.list: \

© 2014-2024 Faster IT GmbH | imprint | privacy policy