-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·68 lines (53 loc) · 1.86 KB
/
Makefile
File metadata and controls
executable file
·68 lines (53 loc) · 1.86 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ANOLIS = anolis
NODE = node
SPECSTOP = ..
GENDIR = $(SPECSTOP)/cssom
IDLGEN = $(GENDIR)/cssom-generate-json.js
SPECGEN = $(GENDIR)/cssom-generate.js
SPECSRC = cssom-source
IDLDRIVER = cssom.idl
IDLFRAGS = idl/CSSFontFaceRule.idl \
idl/CSSImportRule.idl \
idl/CSSMediaRule.idl \
idl/CSSNamespaceRule.idl \
idl/CSSPageRule.idl \
idl/CSSRule.idl \
idl/CSSRuleList.idl \
idl/CSSStyleDeclaration.idl \
idl/CSSStyleRule.idl \
idl/CSSStyleSheet.idl \
idl/Document.idl \
idl/ElementCSSInlineStyle.idl \
idl/LinkStyle.idl \
idl/MediaList.idl \
idl/ProcessingInstruction.idl \
idl/StyleSheet.idl \
idl/StyleSheetList.idl \
idl/Window.idl
JSONFILE = cssom.json
XREFS = data/xrefs/css/cssom.json
EDFILE = Overview.html
TRFILE = TR/Overview.html
all: $(EDFILE)
$(JSONFILE): $(IDLDRIVER) $(IDLFRAGS) $(IDLGEN)
gcc -E -x c -P -Iidl -C $(IDLDRIVER) | node $(IDLGEN) > $@
Overview.src.html: $(SPECGEN) $(JSONFILE) $(SPECSRC)
$(NODE) $(SPECGEN) $(JSONFILE) $(SPECSRC) > $@
$(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) Overview.src.html
$(RM) $(JSONFILE)
cleanall:: clean
$(RM) $(EDFILE)
echo '{ "definitions": {}, "url": "http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom/Overview.html#" }' > $(XREFS)