| 4 |
|
|
| 5 |
WMLBASE=. |
WMLBASE=. |
| 6 |
CUR_DIR= |
CUR_DIR= |
| 7 |
SUBS=Bugs MailingLists News Pics banners chinese consultants devel distrib \ |
SUBS=po Bugs CD MailingLists News Pics banners chinese consultants devel \ |
| 8 |
doc events intro international logos mirror misc partners ports releases \ |
distrib doc events intro international legal logos mirror misc partners \ |
| 9 |
searchtmpl security vote y2k |
ports releases searchtmpl security vote y2k |
| 10 |
|
|
| 11 |
ifneq "$(wildcard om_svenska/Makefile)" "" |
ifneq "$(wildcard om_svenska/Makefile)" "" |
| 12 |
SUBS += om_svenska |
SUBS += om_svenska |
| 14 |
|
|
| 15 |
include $(WMLBASE)/Make.lang |
include $(WMLBASE)/Make.lang |
| 16 |
|
|
| 17 |
|
ifndef SUBLANG |
| 18 |
|
SITEMAP = sitemap.$(LANGUAGE).html |
| 19 |
|
DESTSITEMAP = $(HTMLDIR)/$(SITEMAP) |
| 20 |
|
else |
| 21 |
|
SITEMAP = $(sort $(foreach i,$(SUBLANG),\ |
| 22 |
|
$(patsubst %.wml,%.$(LANGUAGE)-$(i).html,sitemap.wml))) |
| 23 |
|
DESTSITEMAP = $(patsubst %.html,$(HTMLDIR)/%.html,$(SITEMAP)) |
| 24 |
|
endif |
| 25 |
|
|
| 26 |
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/mainpage.wml \ |
index.$(LANGUAGE).html: index.wml $(TEMPLDIR)/mainpage.wml \ |
| 27 |
$(wildcard News/$(CUR_YEAR)/[0-9]*.wml) $(wildcard $(ENGLISHSRCDIR)/News/$(CUR_YEAR)/[0-9]*.wml) \ |
$(wildcard News/$(CUR_YEAR)/[0-9]*.wml) $(wildcard $(ENGLISHSRCDIR)/News/$(CUR_YEAR)/[0-9]*.wml) \ |
| 30 |
$(ENGLISHSRCDIR)/releases/info |
$(ENGLISHSRCDIR)/releases/info |
| 31 |
$(WML) index.wml |
$(WML) index.wml |
| 32 |
|
|
| 33 |
sitemap.$(LANGUAGE).html: $(ENGLISHDIR)/sitemap.wml \ |
$(SITEMAP): $(ENGLISHDIR)/sitemap.wml $(TEMPLDIR)/card.wml \ |
| 34 |
$(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/template.wml \ |
$(TEMPLDIR)/links.tags.wml $(TEMPLDIR)/template.wml \ |
| 35 |
$(ENGLISHDIR)/releases/info $(ENGLISHDIR)/MailingLists/mklist.tags |
$(ENGLISHDIR)/releases/info $(ENGLISHDIR)/MailingLists/mklist.tags |
| 36 |
ifeq "$(LANGUAGE)" "zh" |
ifeq "$(LANGUAGE)" "zh" |
| 37 |
$(shell echo $(WML) | sed s/:.zh/:sitemap.zh/g) \ |
$(subst :.zh,:sitemap.zh,$(WML)) \ |
| 38 |
$(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml \ |
$(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \ |
| 39 |
$(shell egrep '^-D (CUR_|CHAR)' .wmlrc) |
$(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml |
| 40 |
@echo -n " * Converting: [zh_CN.GB2312], " |
@echo -n " * Converting: [zh_CN.GB2312], " |
| 41 |
@$(B5TOGB) < sitemap.zh-cn.html.tmp > sitemap.zh-cn.html |
@$(B5TOGB) < sitemap.zh-cn.html.tmp > sitemap.zh-cn.html |
| 42 |
@rm -f sitemap.zh-cn.html.tmp |
@rm -f sitemap.zh-cn.html.tmp |
| 48 |
@mv -f sitemap.zh-tw.html.tmp sitemap.zh-tw.html |
@mv -f sitemap.zh-tw.html.tmp sitemap.zh-tw.html |
| 49 |
@$(TOTW) sitemap.zh-tw.html |
@$(TOTW) sitemap.zh-tw.html |
| 50 |
else |
else |
| 51 |
ifeq "$(LANGUAGE)" "ja" |
$(WML) $(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \ |
| 52 |
wml -q -D CUR_YEAR=2001 -o UNDEFuJA:sitemap.ja.html.tmp@g+w \ |
$(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml |
|
--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 |
|
| 53 |
endif |
endif |
| 54 |
|
|
| 55 |
all:: sitemap.$(LANGUAGE).html |
all:: $(SITEMAP) |
| 56 |
|
|
| 57 |
install:: |
install:: $(DESTSITEMAP) |
| 58 |
|
ifeq "$(LANGUAGE)" "en" |
| 59 |
test -L $(HTMLDIR)/intl || ln -sf international $(HTMLDIR)/intl |
test -L $(HTMLDIR)/intl || ln -sf international $(HTMLDIR)/intl |
| 60 |
ifneq "$(LANGUAGE)" "en" |
test -L $(HTMLDIR)/mirrors || ln -sf mirror $(HTMLDIR)/mirrors |
| 61 |
-install -m 664 -p sitemap.$(LANGUAGE)*.html $(HTMLDIR) |
|
| 62 |
|
install:: $(HTMLDIR)/favicon.ico |
| 63 |
|
|
| 64 |
|
$(HTMLDIR)/favicon.ico: favicon.ico |
| 65 |
|
install -p -m 664 favicon.ico $(HTMLDIR) |
| 66 |
endif |
endif |