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 |
all: CSS-all \ |
9 |
HTML.pm _NamedEntityList.pm _LinkTypeList.pm \ |
10 |
ContentType.html HTML.html NanoDOM.html ContentChecker.html \ |
11 |
CacheManifest.html |
12 |
|
13 |
CSS-all: |
14 |
cd CSS && make all |
15 |
|
16 |
update: update-remove-old _NamedEntityList.pm _LinkTypeList.pm |
17 |
|
18 |
update-remove-old: update-_NamedEntityList.pm \ |
19 |
update-_LinkTypeList.pm |
20 |
|
21 |
HTML.pm: HTML.pm.src mkhtmlparser.pl |
22 |
perl mkhtmlparser.pl $< > $@ |
23 |
perl -c $@ |
24 |
|
25 |
%.html: %.pm |
26 |
$(POD2HTML) $< > $@ |
27 |
|
28 |
HTML.html ContentChecker.html CacheManifest.html:: %.html: %.pod |
29 |
$(POD2HTML) $< > $@ |
30 |
|
31 |
_NamedEntityList.pm: mkentitylist.pl Entities.html |
32 |
perl $< > $@.tmp |
33 |
perl -c -w $@.tmp |
34 |
$(CP) $@.tmp $@ |
35 |
$(RMALL) $@.tmp |
36 |
|
37 |
update-_NamedEntityList.pm: |
38 |
$(RMALL) Entities.html |
39 |
|
40 |
Entities.html: |
41 |
$(WGET) -O $@ http://www.whatwg.org/specs/web-apps/current-work/multipage/section-entities.html |
42 |
|
43 |
_LinkTypeList.pm: mklinktypelist.pl RelExtensions.html |
44 |
perl $< > $@ |
45 |
perl -c -w $@ |
46 |
|
47 |
update-_LinkTypeList.pm: |
48 |
$(RMALL) RelExtensions.html |
49 |
|
50 |
RelExtensions.html: |
51 |
$(WGET) http://wiki.whatwg.org/wiki/RelExtensions -O $@ |
52 |
|
53 |
clean: CSS-clean |
54 |
$(RMALL) *~ *.bak *.tmp |
55 |
|
56 |
CSS-clean: |
57 |
cd CSS && make clean |
58 |
|
59 |
## License: Public Domain. |
60 |
## $Date: 2007/10/17 10:46:26 $ |