aboutsummaryrefslogtreecommitdiffstats
path: root/danish/Makefile
blob: c7c57a2b8d4499c5291d43358248cefcd3ca36e1 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This Makefile should need no changes from webwml/english/Makefile
# Please send a message to debian-www if you need to modify anything
# so the problem can be fixed.

WMLBASE=.
CUR_DIR=
SUBS=Bugs MailingLists News Pics banners chinese consultants devel distrib \
doc events intro international logos mirror misc partners ports releases \
searchtmpl security vote y2k

ifneq "$(wildcard om_svenska/Makefile)" ""
SUBS += om_svenska
endif

include $(WMLBASE)/Make.lang


index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/mainpage.wml \
		$(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 \
		$(ENGLISHSRCDIR)/releases/info
	$(WML) index.wml

sitemap.$(LANGUAGE).html: $(ENGLISHDIR)/sitemap.wml \
  $(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/template.wml \
  $(ENGLISHDIR)/releases/info $(ENGLISHDIR)/MailingLists/mklist.tags
ifeq "$(LANGUAGE)" "zh"
	$(shell echo $(WML) | sed s/:.zh/:sitemap.zh/g) \
          $(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml \
            $(shell egrep '^-D (CUR_|CHAR)' .wmlrc)
	@echo -n " * Converting: [zh_CN.GB2312], "
	@$(B5TOGB) < sitemap.zh-cn.html.tmp > sitemap.zh-cn.html
	@rm -f sitemap.zh-cn.html.tmp
	@$(TOCN) sitemap.zh-cn.html
	@echo -n "[zh_HK.Big5], "
	@mv -f sitemap.zh-hk.html.tmp sitemap.zh-hk.html
	@$(TOHK) sitemap.zh-hk.html
	@echo "[zh_TW.Big5]."
	@mv -f sitemap.zh-tw.html.tmp sitemap.zh-tw.html
	@$(TOTW) sitemap.zh-tw.html
else
ifeq "$(LANGUAGE)" "ja"
	wml -q -D CUR_YEAR=2001 -o UNDEFuJA:sitemap.ja.html.tmp@g+w \
          --prolog="/usr/bin/kcc -e -" --epilog="./convert sitemap.ja.html" \
            ../english/sitemap.wml \
              -D CUR_LANG=Japanese -D CUR_ISO_LANG=ja -D CHARSET=iso-2022-jp
else
	$(shell echo $(WML) | sed s/index/sitemap/) \
          $(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml \
            $(shell egrep '^-D (CUR_|CHAR)' .wmlrc)
endif
endif

all:: sitemap.$(LANGUAGE).html

install::
	test -L $(HTMLDIR)/intl || ln -sf international $(HTMLDIR)/intl
ifneq "$(LANGUAGE)" "en"
	-install -m 664 -p sitemap.$(LANGUAGE)*.html $(HTMLDIR)
endif

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