forked from w3c/csswg-drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 1.05 KB
/
Makefile
File metadata and controls
37 lines (25 loc) · 1.05 KB
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
ANOLIS = anolis
PYTHON = python
NODE = node
XREFS = data/xrefs/css/cssom.json
EDFILE = Overview.html
TRFILE = TR/Overview.html
all: $(EDFILE)
Overview.src.html: cssom-generate.js idl/cssom.json cssom-source
$(NODE) cssom-generate.js > $@
$(XREFS): Overview.src.html Makefile
$(ANOLIS) --dump-xrefs=$@ $< /tmp/spec; $(RM) /tmp/spec
$(EDFILE): Overview.src.html $(XREFS) Makefile
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \
--force-html4-id --filter=".publish" $< $@
draft: $(EDFILE)
$(TRFILE): Overview.src.html $(XREFS) Makefile
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \
--force-html4-id --filter=".dontpublish" --pubdate="$(PUBDATE)" --w3c-status=WD $< $@
publish: $(TRFILE)
clean::
$(RM) $(EDFILE)
$(RM) Overview.src.html
echo '{ "definitions": {}, "url": "http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom/Overview.html#" }' > $(XREFS)