From d46c65ade631cdbcbc0f2d6445a7a455d4c26e32 Mon Sep 17 00:00:00 2001 From: Laura Arjona Reina Date: Sun, 27 Dec 2020 17:35:29 +0100 Subject: Add recipe for building index.wml, so it's updated when a new security advisory is published --- english/intro/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/english/intro/Makefile b/english/intro/Makefile index de9aebfb229..da871431606 100644 --- a/english/intro/Makefile +++ b/english/intro/Makefile @@ -9,6 +9,25 @@ include $(WMLBASE)/Make.lang about.$(LANGUAGE).html: $(TEMPLDIR)/release_info.wml +ifndef SUBLANG +INDEXPAGE := index.$(LANGUAGE).html +else +INDEXPAGE := $(sort $(foreach i,$(SUBLANG),$(subst index,index.$(LANGUAGE)-$(i),index.html))) +endif + +$(INDEXPAGE): index.wml $(wildcard $(ENGLISHSRCDIR)/security/$(CUR_YEAR)/dsa-[0-9]*.wml) \ + $(TEMPLDIR)/recent_list.wml $(GETTEXTDEP) + +ifeq "$(LANGUAGE)" "zh" + @echo -n "Processing $(