forked from benschwarz/developers.whatwg.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1000 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
HG=hg
SVN=svn
CURL=curl
PYTHON=python
RUBY=ruby
PATCH=patch
SPLITTER=html5-tools/spec-splitter/spec-splitter.py
SPLITTERFLAGS=--html5lib-serialiser
postprocess: clean-output process_assets LOG
rake --trace postprocess:execute
LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< ./public > LOG
index.html: html5-full.html anolis/anolis
$(PYTHON) anolis/anolis \
--parser=lxml.html \
--filter=.impl \
--output-encoding="ascii" \
$< $@
html5-full.html:
$(CURL) --compressed http://www.whatwg.org/specs/web-apps/current-work/dev-index > $@
$(RUBY) tidy.rb $@
process_assets:
$(RUBY) assets.rb
clean: clean-output
$(RM) html5-full.html
clean-output:
$(RM) LOG
$(RM) -r public/**/*.html
$(RM) -r public/css/*.css
$(RM) -r public/javascript/*.js
$(RM) -r public/*.manifest
anolis/anolis:
$(HG) clone http://hg.hoppipolla.co.uk/anolis/
$(PATCH) -p1 -d anolis < patch.anolis
$(SPLITTER):
$(SVN) checkout http://html5.googlecode.com/svn/trunk/ html5-tools