/[suikacvs]/markup/html/whatpm/Whatpm/Makefile
Suika

Contents of /markup/html/whatpm/Whatpm/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Sep 18 02:39:16 2008 UTC (18 years ago) by wakaba
Branch: MAIN
Changes since 1.13: +23 -4 lines
++ whatpm/Whatpm/ChangeLog	18 Sep 2008 02:39:06 -0000
2008-09-18  Wakaba  <wakaba@suika.fam.cx>

	* mklangreg.pl: New script.

	* Makefile: Updated for creation of the module for language subtag
	registry.

1 POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \
2 --htmlroot ".."
3 WGET = wget
4 CP = cp
5 RM = rm
6 RMALL = $(RM) -fr
7
8 LANGUAGE_SUBTAG_REGISTRY = language-subtag-registry
9 LANGUAGE_SUBTAG_REGISTRY_PM = _LangTagReg.pm
10
11 all: \
12 _update \
13 Charset-all CSS-all HTML-all XML-all \
14 HTML.pm _NamedEntityList.pm _LinkTypeList.pm \
15 ContentType.html HTML.html NanoDOM.html ContentChecker.html \
16 CacheManifest.html WebIDL.html
17
18 Charset-all:
19 cd Charset && make all
20
21 CSS-all:
22 cd CSS && make all
23
24 HTML-all:
25 cd HTML && make all
26
27 XML-all:
28 cd XML && make all
29
30 update: update-remove-old _update
31
32 _update:_NamedEntityList.pm _LinkTypeList.pm \
33 $(LANGUAGE_SUBTAG_REGISTRY_PM)
34
35 update-remove-old: update-_NamedEntityList.pm \
36 update-_LinkTypeList.pm \
37 update-$(LANGUAGE_SUBTAG_REGISTRY_PM)
38
39 HTML.pm: HTML.pm.src mkhtmlparser.pl
40 perl mkhtmlparser.pl $< > $@
41 perl -c $@
42
43 %.html: %.pm
44 $(POD2HTML) $< > $@
45
46 HTML.html ContentChecker.html CacheManifest.html WebIDL.html:: %.html: %.pod
47 $(POD2HTML) $< > $@
48
49 _NamedEntityList.pm: mkentitylist.pl Entities.html
50 perl $< > [email protected]
51 perl -c -w [email protected]
52 $(CP) [email protected] $@
53 $(RMALL) [email protected]
54
55 update-_NamedEntityList.pm:
56 $(RMALL) Entities.html
57
58 Entities.html:
59 $(WGET) -O $@ http://www.whatwg.org/specs/web-apps/current-work/multipage/named.html
60
61 _LinkTypeList.pm: mklinktypelist.pl RelExtensions.html
62 perl $< > $@
63 perl -c -w $@
64
65 update-_LinkTypeList.pm:
66 $(RMALL) RelExtensions.html
67
68 RelExtensions.html:
69 $(WGET) http://wiki.whatwg.org/wiki/RelExtensions -O $@
70
71 $(LANGUAGE_SUBTAG_REGISTRY):
72 $(WGET) http://www.iana.org/assignments/language-subtag-registry -O $@
73
74 $(LANGUAGE_SUBTAG_REGISTRY_PM): $(LANGUAGE_SUBTAG_REGISTRY) mklangreg.pl
75 perl mklangreg.pl $< > $@
76
77 update-$(LANGUAGE_SUBTAG_REGISTRY_PM):
78 $(RMALL) $(LANGUAGE_SUBTAG_REGISTRY)
79
80 clean: Charset-clean CSS-clean HTML-clean XML-clean
81 $(RMALL) *~ *.bak *.tmp
82 $(RMALL) $(LANGUAGE_SUBTAG_REGISTRY)
83
84 Charset-clean:
85 cd Charset && make clean
86
87 CSS-clean:
88 cd CSS && make clean
89
90 HTML-clean:
91 cd HTML && make clean
92
93 XML-clean:
94 cd XML && make clean
95
96 ## License: Public Domain.
97 ## $Date: 2008/09/16 14:41:38 $

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24