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