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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Oct 14 02:27:58 2008 UTC (16 years ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +7 -2 lines
++ whatpm/Whatpm/ChangeLog	14 Oct 2008 02:26:16 -0000
2008-10-14  Wakaba  <wakaba@suika.fam.cx>

	* Makefile: New rule to make HTML/Tokenizer.pm is added.

	* HTML.pm.src: Tokenizer part moved to another file.

++ whatpm/Whatpm/HTML/ChangeLog	14 Oct 2008 02:25:46 -0000
2008-10-14  Wakaba  <wakaba@suika.fam.cx>

	* Tokenizer.pm.src: New file.

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/Tokenizer.pm \
15 HTML.pm _NamedEntityList.pm _LinkTypeList.pm \
16 ContentType.html HTML.html NanoDOM.html ContentChecker.html \
17 CacheManifest.html WebIDL.html
18
19 Charset-all:
20 cd Charset && make all
21
22 CSS-all:
23 cd CSS && make all
24
25 HTML-all:
26 cd HTML && make all
27
28 XML-all:
29 cd XML && make all
30
31 update: update-remove-old _update
32
33 _update:_NamedEntityList.pm _LinkTypeList.pm \
34 $(LANGUAGE_SUBTAG_REGISTRY_PM)
35
36 update-remove-old: update-_NamedEntityList.pm \
37 update-_LinkTypeList.pm \
38 update-$(LANGUAGE_SUBTAG_REGISTRY_PM)
39
40 HTML.pm: HTML.pm.src mkhtmlparser.pl
41 perl mkhtmlparser.pl $< > $@
42 perl -I.. -c $@
43
44 HTML/Tokenizer.pm: HTML/Tokenizer.pm.src mkhtmlparser.pl
45 perl mkhtmlparser.pl $< > $@
46 perl -I.. -c $@
47
48 %.html: %.pm
49 $(POD2HTML) $< > $@
50
51 HTML.html ContentChecker.html CacheManifest.html WebIDL.html:: %.html: %.pod
52 $(POD2HTML) $< > $@
53
54 _NamedEntityList.pm: mkentitylist.pl Entities.html
55 perl $< > $@.tmp
56 perl -c -w $@.tmp
57 $(CP) $@.tmp $@
58 $(RMALL) $@.tmp
59
60 update-_NamedEntityList.pm:
61 $(RMALL) Entities.html
62
63 Entities.html:
64 $(WGET) -O $@ http://www.whatwg.org/specs/web-apps/current-work/multipage/named.html
65
66 _LinkTypeList.pm: mklinktypelist.pl RelExtensions.html
67 perl $< > $@
68 perl -c -w $@
69
70 update-_LinkTypeList.pm:
71 $(RMALL) RelExtensions.html
72
73 RelExtensions.html:
74 $(WGET) http://wiki.whatwg.org/wiki/RelExtensions -O $@
75
76 $(LANGUAGE_SUBTAG_REGISTRY):
77 $(WGET) http://www.iana.org/assignments/language-subtag-registry -O $@
78
79 $(LANGUAGE_SUBTAG_REGISTRY_PM): $(LANGUAGE_SUBTAG_REGISTRY) mklangreg.pl
80 perl mklangreg.pl $< > $@
81
82 update-$(LANGUAGE_SUBTAG_REGISTRY_PM):
83 $(RMALL) $(LANGUAGE_SUBTAG_REGISTRY)
84
85 clean: Charset-clean CSS-clean HTML-clean XML-clean
86 $(RMALL) *~ *.bak *.tmp
87 $(RMALL) $(LANGUAGE_SUBTAG_REGISTRY)
88
89 Charset-clean:
90 cd Charset && make clean
91
92 CSS-clean:
93 cd CSS && make clean
94
95 HTML-clean:
96 cd HTML && make clean
97
98 XML-clean:
99 cd XML && make clean
100
101 ## License: Public Domain.
102 ## $Date: 2008/09/18 02:39:16 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24