blob: 68dea1028a85f85781f61afd257acb2c1ebf5679 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# If this makefile is not generic enough to support a translation,
# please contact debian-www.
WMLBASE=../../..
CUR_DIR=lts/security/2020
SUBS=
GETTEXTFILES += security.mo
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
ifndef SUBLANG
INDEXPAGE = index.$(LANGUAGE).html
else
INDEXPAGE = $(sort $(foreach i,$(SUBLANG),$(subst index,index.$(LANGUAGE)-$(i),index.html)))
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
$(INDEXPAGE): index.wml \
$(sort $(wildcard dla-[0-9]*.wml)) $(sort $(wildcard $(ENGLISHSRCDIR)/$(CUR_DIR)/dla-[0-9]*.data)) \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list_security.wml $(GETTEXTDEP) | $(VCSREVCACHE)
ifeq "$(LANGUAGE)" "zh"
@echo -n "Processing $(<F): "
$(shell echo $(WML) | perl -pe 's,:.zh-(..)\.html,:index.zh-$$1.html,g') \
$(shell egrep '^-D (CUR_|CHAR)' ../../.wmlrc) \
$(<F)
@$(GENERATE_ZH_VARIANTS) index html
else
$(WML) $(<F)
endif
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/security.wml \
$(ENGLISHSRCDIR)/$(CUR_DIR)/%.data $(GETTEXTDEP) | $(VCSREVCACHE)
$(WML) $(<F)
ifeq "$(LANGUAGE)" "zh"
@$(GENERATE_ZH_VARIANTS) $* html
endif
|