-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·50 lines (37 loc) · 1.46 KB
/
Makefile
File metadata and controls
executable file
·50 lines (37 loc) · 1.46 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
ANOLIS = anolis
NODE = node
SPECSTOP = ..
GENDIR = $(SPECSTOP)/cssom
IDLGEN = $(GENDIR)/cssom-generate-json.js
SPECGEN = $(GENDIR)/cssom-generate.js
SPECSRC = cssom-values-source
IDLDRIVER = cssom-values.idl
IDLFRAGS =
JSONFILE = cssom-values.json
XREFS = data/xrefs/css/cssom-values.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-values" \
--force-html4-id --filter=".publish" --split-references-section $< $@
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-values" \
--force-html4-id --filter=".dontpublish" --pubdate="$(PUBDATE)" --split-references-section \
--w3c-status=WD $< $@
publish: $(TRFILE)
clean::
$(RM) Overview.src.html
$(RM) $(JSONFILE)
cleanall:: clean
$(RM) $(EDFILE)
echo '{ "definitions": {}, "url": "http://dev.w3.org/hg/csswg/cssom-values/#" }' > $(XREFS)