Commit 533db96b authored by Steve McIntyre's avatar Steve McIntyre

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.
parent f035d5bf
......@@ -10,6 +10,7 @@ ENGLISHDIR := $(ENGLISHSRCDIR)
TEMPLDIR := $(ENGLISHDIR)/template/debian
RELHTMLBASE := ../../www
HTMLDIR = $(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
VCSREVCACHE = $(WMLBASE)/../.git-revs-cache.db
LOCALEDIR := $(WMLBASE)/../locale/$(LANGUAGE)/LC_MESSAGES
essential-locale-files := templates countries langs date
......@@ -90,6 +91,9 @@ cleandest:: $(existing-SUBS-cleandest)
$(existing-SUBS-cleandest):
-$(MAKE) -C $(patsubst %-cleandest,%,$@) cleandest
$(VCSREVCACHE): $(WMLBASE)/../.git/index
(cd $(WMLBASE)/.. && ./build_vcs_cache.pl)
# the rule for every wml file
ifndef NOGENERICDEP
......@@ -99,7 +103,11 @@ else
EXTRAWMLDEP := $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/translation-check.wml
endif
%.$(LANGUAGE).html : %.wml $(EXTRAWMLDEP)
# 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 $(EXTRAWMLDEP) | $(VCSREVCACHE)
$(WML) $(<F)
ifeq "$(LANGUAGE)" "en"
-$(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
......
......@@ -91,15 +91,20 @@ $(HTMLDIR)/%.zh-tw.html: %.zh-tw.html
fi
ifndef NOGENERICDEP
# 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
%.zh-cn.html %.zh-hk.html %.zh-tw.html: %.wml \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml \
$(COMMON_SCRIPTS) $(ZHTEMPLATE) $(GETTEXTDEP)
$(COMMON_SCRIPTS) $(ZHTEMPLATE) $(GETTEXTDEP) $(TEMPLDIR)/translation-check.wml | $(VCSREVCACHE)
@echo -n "Processing $(<F): "
@$(WML) $(<F)
@$(GENERATE_ZH_VARIANTS) $* html
else
%.zh-cn.html %.zh-hk.html %.zh-tw.html: %.wml \
$(COMMON_SCRIPTS) $(ZHTEMPLATE) $(GETTEXTDEP)
$(COMMON_SCRIPTS) $(ZHTEMPLATE) $(GETTEXTDEP) | $(VCSREVCACHE)
@echo -n "Processing $(<F): "
@cd $(@D) && $(WML) $(notdir $(<))
@$(GENERATE_ZH_VARIANTS) $* html
......
include $(subst webwml/danish,webwml/english,$(CURDIR))/../Make.year
include $(subst webwml/danish,webwml/english,$(CURDIR))/../Make.year
......@@ -10,7 +10,17 @@ GETTEXTFILES += cdimage.mo
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
%.$(LANGUAGE).html: %.wml $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/cdimage.wml
ifeq "$(LANGUAGE)" "en"
EXTRAWMLDEP := $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/cdimage.wml
else
EXTRAWMLDEP := $(WMLRCDEP) $(GETTEXTDEP) $(TEMPLDIR)/cdimage.wml $(TEMPLDIR)/translation-check.wml
endif
# 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 $(EXTRAWMLDEP) | $(VCSREVCACHE)
$(WML) $(<F)
ifneq "$(wildcard releases/index.wml)" ""
......
......@@ -9,5 +9,9 @@ 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)
......@@ -9,10 +9,14 @@ 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 \
$(TEMPLDIR)/toc.wml \
$(TEMPLDIR)/release_info.wml
$(TEMPLDIR)/release_info.wml | $(VCSREVCACHE)
......@@ -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: \
......
......@@ -9,11 +9,15 @@ 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 \
$(TEMPLDIR)/installer.wml $(TEMPLDIR)/toc.wml \
$(TEMPLDIR)/release_info.wml \
$(ENGLISHSRCDIR)/devel/debian-installer/images.data \
$(TEMPLDIR)/release_images.wml
$(TEMPLDIR)/release_images.wml | $(VCSREVCACHE)
......@@ -9,9 +9,13 @@ 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)/template.wml \
$(TEMPLDIR)/release_info.wml $(TEMPLDIR)/installer.wml \
$(TEMPLDIR)/release_images.wml
$(TEMPLDIR)/release_images.wml | $(VCSREVCACHE)
......@@ -9,11 +9,15 @@ 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)
rsync-mirrors.$(LANGUAGE).html: rsync-mirrors.wml $(TEMPLDIR)/cdimage.wml \
$(ENGLISHDIR)/CD/mirroring/cdimage_mirrors.list
$(ENGLISHDIR)/CD/mirroring/cdimage_mirrors.list | $(VCSREVCACHE)
ifeq "$(LANGUAGE)" "en"
$(ENGLISHDIR)/CD/mirroring/cdimage_mirrors.list: \
......
......@@ -9,9 +9,13 @@ 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)/template.wml \
$(TEMPLDIR)/release_info.wml $(TEMPLDIR)/installer.wml \
$(TEMPLDIR)/release_images.wml
$(TEMPLDIR)/release_images.wml | $(VCSREVCACHE)
......@@ -9,5 +9,9 @@ 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)
......@@ -9,11 +9,15 @@ 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 \
$(TEMPLDIR)/installer.wml $(TEMPLDIR)/toc.wml \
$(TEMPLDIR)/release_info.wml \
$(ENGLISHSRCDIR)/devel/debian-installer/images.data \
$(TEMPLDIR)/release_images.wml
$(TEMPLDIR)/release_images.wml | $(VCSREVCACHE)
......@@ -9,26 +9,30 @@ GETTEXTFILES += newsevents.mo
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/template.wml \
$(TEMPLDIR)/recent_list.wml $(wildcard $(THIS_YEAR)*.wml) \
$(wildcard $(ENGLISHDIR)/News/$(THIS_YEAR)/$(THIS_YEAR)*.wml) $(GETTEXTDEP)
$(wildcard $(ENGLISHDIR)/News/$(THIS_YEAR)/$(THIS_YEAR)*.wml) $(GETTEXTDEP) | $(VCSREVCACHE)
# Don't know why onlt these specific news articles are include
# Don't know why only these specific news articles are include
# news_events.wml and not all of them... :-/
20040524.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20040524.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20040619.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20040619.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20041015.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20041015.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20050218.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20050218.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20050617.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20050617.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20050705.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20050705.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
20120120.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP)
20120120.%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(TEMPLDIR)/news_events.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(GETTEXTDEP)
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -13,15 +13,19 @@ LAST_YEAR = 2007
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/template.wml \
$(TEMPLDIR)/countries.wml \
$(GETTEXTDEP) \
$(ENGLISHDIR)/News/press/press.tags \
$(ENGLISHDIR)/News/press/$(LAST_YEAR).data
$(ENGLISHDIR)/News/press/$(LAST_YEAR).data | $(VCSREVCACHE)
$(WML) $(<F)
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/countries.wml \
$(GETTEXTDEP) \
$(ENGLISHDIR)/News/press/press.tags \
$(ENGLISHDIR)/News/press/%.data
$(ENGLISHDIR)/News/press/%.data | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -31,11 +31,15 @@ else
all:: index.zh-cn.html index.zh-hk.html index.zh-tw.html $(HTMLFILES)
endif
# 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
# When building the html files we have to change into the right directory
# so wml gets all the relative links right.
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/projectnews/footer.wml \
$(TEMPLDIR)/projectnews/header.wml $(GETTEXTDEP) \
$(TEMPLDIR)/projectnews/boilerplates.wml
$(TEMPLDIR)/projectnews/boilerplates.wml | $(VCSREVCACHE)
ifeq "$(LANGUAGE)" "pl"
cd $(@D) && $(subst ../../znaczki.sh,$(CURDIR)/../../znaczki.sh,$(WML)) $(notdir $(<))
......@@ -85,7 +89,7 @@ index.$(LANGUAGE).html: index.wml $(wildcard $(CUR_YEAR)/*/index.wml) \
$(TEMPLDIR)/projectnews/footer.wml \
$(TEMPLDIR)/weeklynews/header.wml \
$(TEMPLDIR)/weeklynews/index.wml \
$(TEMPLDIR)/weeklynews/footer.wml $(GETTEXTDEP)
$(TEMPLDIR)/weeklynews/footer.wml $(GETTEXTDEP) | $(VCSREVCACHE)
# per-year indices need to be rebuilt, too.
# this code works around a small bug in make's $(wildcard) function, too
......@@ -97,7 +101,7 @@ index.$(LANGUAGE).html: index.wml $(wildcard $(CUR_YEAR)/*/index.wml) \
$(TEMPLDIR)/projectnews/footer.wml \
$(TEMPLDIR)/weeklynews/header.wml \
$(TEMPLDIR)/weeklynews/index.wml \
$(TEMPLDIR)/weeklynews/footer.wml $(GETTEXTDEP)
$(TEMPLDIR)/weeklynews/footer.wml $(GETTEXTDEP) | $(VCSREVCACHE)
CURRENT_ISSUE=$(shell cat $(ENGLISHSRCDIR)/$(CUR_DIR)/CURRENT-ISSUE-IS)/index.wml
DWN_CURRENT=$(shell test -f $(CURRENT_ISSUE) && echo "yes" || echo)
......
......@@ -9,9 +9,13 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard 2014*.wml) \
$(wildcard 2014*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -9,9 +9,13 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard 2014*.wml) \
$(wildcard 2014*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -5,10 +5,14 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard $(THIS_YEAR)*.wml) \
$(wildcard $(THIS_YEAR)*.title) \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml \
$(GETTEXTDEP)
$(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(GETTEXTDEP)
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-jr/News/2000
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2000*.wml) \
$(wildcard 2000*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2000
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-jr/News/2001
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2001*.wml) \
$(wildcard 2001*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2001
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-jr/News/2002
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2002*.wml) \
$(wildcard 2002*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2002
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-jr/News/2003
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2003*.wml) \
$(wildcard 2003*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2003
include ../Make.year
# If this makefile is not generic enough to support a translation,
# please contact debian-www.
CUR_DIR=devel/debian-jr/News/$(THIS_YEAR)
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard $(THIS_YEAR)*.wml) \
$(wildcard $(THIS_YEAR)*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2002
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2002*.wml) \
$(wildcard 2002*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2002
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2003
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2003*.wml) \
$(wildcard 2003*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2003
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2004
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2004*.wml) \
$(wildcard 2004*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2004
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2005
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2005*.wml) \
$(wildcard 2005*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2005
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2007
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2007*.wml) \
$(wildcard 2007*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2007
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2008
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2008*.wml) \
$(wildcard 2008*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2008
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2009
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2009*.wml) \
$(wildcard 2009*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2009
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2010
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2010*.wml) \
$(wildcard 2010*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2010
include ../Make.year
......@@ -2,16 +2,5 @@
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/2011
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
index.$(LANGUAGE).html: index.wml $(wildcard 2011*.wml) \
$(wildcard 2011*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
$(WML) $(<F)
THIS_YEAR=2011
include ../Make.year
# If this makefile is not generic enough to support a translation,
# please contact debian-www.
WMLBASE=../../../..
CUR_DIR=devel/debian-med/News/$(THIS_YEAR)
SUBS=
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard $(THIS_YEAR)*.wml) \
$(wildcard $(THIS_YEAR)*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -9,9 +9,13 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard 2003*.wml) \
$(wildcard 2003*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -9,9 +9,13 @@ NOGENERICDEP := true
include $(WMLBASE)/Make.lang
# 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
index.$(LANGUAGE).html: index.wml $(wildcard 2004*.wml) \
$(wildcard 2004*.title)\
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
$(WML) index.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/news.wml | $(VCSREVCACHE)
$(WML) $(<F)
......@@ -25,7 +25,11 @@ endif
DESTSTATS = $(patsubst %.html,$(HTMLDIR)/%.html,$(STATS))
%.$(LANGUAGE).html: $(ENGLISHDIR)/$(CUR_DIR)/%.wml $(LOCALEDIR)/stats.mo
# The "| $(VCSREVCACHE)" here is an order-only prerequisite - always
# check that the prerequisite exists and is up to date, but don't