1 |
POD2HTML = pod2html --css "http://suika.fam.cx/www/style/html/pod.css" \ |
2 |
--htmlroot ".." |
3 |
WGET = wget |
4 |
RM = rm |
5 |
RMALL = $(RM) -fr |
6 |
|
7 |
all: CSS-all \ |
8 |
HTML.pm _NamedEntityList.pm _LinkTypeList.pm \ |
9 |
ContentType.html HTML.html NanoDOM.html ContentChecker.html |
10 |
|
11 |
CSS-all: |
12 |
cd CSS && make all |
13 |
|
14 |
HTML.pm: HTML.pm.src mkhtmlparser.pl |
15 |
perl mkhtmlparser.pl $< > $@ |
16 |
perl -c $@ |
17 |
|
18 |
%.html: %.pm |
19 |
$(POD2HTML) $< > $@ |
20 |
|
21 |
HTML.html ContentChecker.html:: %.html: %.pod |
22 |
$(POD2HTML) $< > $@ |
23 |
|
24 |
_NamedEntityList.pm: mkentitylist.pl Entities.html |
25 |
perl $< > $@.tmp |
26 |
perl -c -w $@.tmp |
27 |
cp $@.tmp $@ |
28 |
rm $@.tmp |
29 |
|
30 |
Entities.html: |
31 |
$(WGET) -O $@ http://www.whatwg.org/specs/web-apps/current-work/multipage/section-entities.html |
32 |
|
33 |
_LinkTypeList.pm: mklinktypelist.pl RelExtensions.html |
34 |
perl $< > $@ |
35 |
perl -c -w $@ |
36 |
|
37 |
RelExtensions.html: |
38 |
$(WGET) http://wiki.whatwg.org/wiki/RelExtensions -O $@ |
39 |
|
40 |
clean: CSS-clean |
41 |
$(RMALL) *~ *.bak *.tmp |
42 |
|
43 |
CSS-clean: |
44 |
cd CSS && make clean |
45 |
|
46 |
## License: Public Domain. |
47 |
## $Date: 2007/08/06 10:56:50 $ |