| 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: Charset-all CSS-all HTML-all XML-all \ |
| 9 |
HTML.pm _NamedEntityList.pm _LinkTypeList.pm \ |
| 10 |
ContentType.html HTML.html NanoDOM.html ContentChecker.html \ |
| 11 |
CacheManifest.html WebIDL.html |
| 12 |
|
| 13 |
Charset-all: |
| 14 |
cd Charset && make all |
| 15 |
|
| 16 |
CSS-all: |
| 17 |
cd CSS && make all |
| 18 |
|
| 19 |
HTML-all: |
| 20 |
cd HTML && make all |
| 21 |
|
| 22 |
XML-all: |
| 23 |
cd XML && make all |
| 24 |
|
| 25 |
update: update-remove-old _NamedEntityList.pm _LinkTypeList.pm |
| 26 |
|
| 27 |
update-remove-old: update-_NamedEntityList.pm \ |
| 28 |
update-_LinkTypeList.pm |
| 29 |
|
| 30 |
HTML.pm: HTML.pm.src mkhtmlparser.pl |
| 31 |
perl mkhtmlparser.pl $< > $@ |
| 32 |
perl -c $@ |
| 33 |
|
| 34 |
%.html: %.pm |
| 35 |
$(POD2HTML) $< > $@ |
| 36 |
|
| 37 |
HTML.html ContentChecker.html CacheManifest.html WebIDL.html:: %.html: %.pod |
| 38 |
$(POD2HTML) $< > $@ |
| 39 |
|
| 40 |
_NamedEntityList.pm: mkentitylist.pl Entities.html |
| 41 |
perl $< > [email protected] |
| 42 |
perl -c -w [email protected] |
| 43 |
$(CP) [email protected] $@ |
| 44 |
$(RMALL) [email protected] |
| 45 |
|
| 46 |
update-_NamedEntityList.pm: |
| 47 |
$(RMALL) Entities.html |
| 48 |
|
| 49 |
Entities.html: |
| 50 |
$(WGET) -O $@ http://www.whatwg.org/specs/web-apps/current-work/multipage/named.html |
| 51 |
|
| 52 |
_LinkTypeList.pm: mklinktypelist.pl RelExtensions.html |
| 53 |
perl $< > $@ |
| 54 |
perl -c -w $@ |
| 55 |
|
| 56 |
update-_LinkTypeList.pm: |
| 57 |
$(RMALL) RelExtensions.html |
| 58 |
|
| 59 |
RelExtensions.html: |
| 60 |
$(WGET) http://wiki.whatwg.org/wiki/RelExtensions -O $@ |
| 61 |
|
| 62 |
clean: Charset-clean CSS-clean HTML-clean XML-clean |
| 63 |
$(RMALL) *~ *.bak *.tmp |
| 64 |
|
| 65 |
Charset-clean: |
| 66 |
cd Charset && make clean |
| 67 |
|
| 68 |
CSS-clean: |
| 69 |
cd CSS && make clean |
| 70 |
|
| 71 |
HTML-clean: |
| 72 |
cd HTML && make clean |
| 73 |
|
| 74 |
XML-clean: |
| 75 |
cd XML && make clean |
| 76 |
|
| 77 |
## License: Public Domain. |
| 78 |
## $Date: 2008/06/29 11:15:54 $ |