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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# If this makefile is not generic enough to support a translation,
# please contact debian-www.
WMLBASE=.
CUR_DIR=
SUBS=Bugs CD MailingLists News Pics banners chinese consultants devel \
distrib doc events intro international legal logos mirror misc partners \
ports releases security users volatile vote y2k
all install:: install-locale
clean:: clean-locale
include $(WMLBASE)/Make.lang
ifndef SUBLANG
SITEMAP = sitemap.$(LANGUAGE).html
DESTSITEMAP = $(HTMLDIR)/$(SITEMAP)
else
SITEMAP = $(sort $(foreach i,$(SUBLANG),\
$(patsubst %.wml,%.$(LANGUAGE)-$(i).html,sitemap.wml)))
DESTSITEMAP = $(patsubst %.html,$(HTMLDIR)/%.html,$(SITEMAP))
endif
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/mainpage.wml $(GETTEXTDEP) \
$(wildcard News/$(CUR_YEAR)/[0-9]*.wml) $(wildcard $(ENGLISHSRCDIR)/News/$(CUR_YEAR)/[0-9]*.wml) \
$(wildcard security/$(CUR_YEAR)/dsa-[0-9]*.wml) $(wildcard $(ENGLISHSRCDIR)/security/$(CUR_YEAR)/dsa-[0-9]*.wml) \
$(TEMPLDIR)/ctime.wml $(TEMPLDIR)/recent_list.wml $(TEMPLDIR)/languages.wml \
$(TEMPLDIR)/release_info.wml $(TEMPLDIR)/release_images.wml
$(WML) index.wml
$(SITEMAP): $(ENGLISHDIR)/sitemap.wml $(TEMPLDIR)/card.wml \
$(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/template.wml $(GETTEXTDEP) \
$(TEMPLDIR)/release_info.wml $(ENGLISHDIR)/MailingLists/mklist.tags
ifeq "$(LANGUAGE)" "zh"
@echo -n "Processing $(<F): "
$(subst :.zh,:sitemap.zh,$(WML)) \
$(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \
$(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml
@$(GENERATE_ZH_VARIANTS) sitemap html
else
$(WML) $(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \
$(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml
endif
ifneq "$(LANGUAGE)" "en"
contact.$(LANGUAGE).html : contact.wml $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml \
$(ENGLISHDIR)/devel/website/tc.data $(LOCALEDIR)/others.mo
endif
all:: $(SITEMAP)
install:: $(DESTSITEMAP)
ifeq "$(LANGUAGE)" "en"
test -L $(HTMLDIR)/intl || ln -sf international $(HTMLDIR)/intl
test -L $(HTMLDIR)/mirrors || ln -sf mirror $(HTMLDIR)/mirrors
install:: $(HTMLDIR)/favicon.ico
$(HTMLDIR)/favicon.ico: favicon.ico
install -p -m 664 favicon.ico $(HTMLDIR)
endif
install-locale:
$(MAKE) -C po install
clean-locale:
$(MAKE) -C po clean
|