|
1 | 1 |
|
2 |
| -ANOLIS = anolis |
3 |
| -CP = cp |
4 |
| - |
5 |
| -XREFS = data/xrefs/css/cssom-view.json |
6 |
| -EDFILE = Overview.html |
7 |
| -TRFILE = TR/Overview.html |
| 2 | +ANOLIS = anolis |
| 3 | +NODE = node |
| 4 | + |
| 5 | +SPECSTOP = .. |
| 6 | +GENDIR = $(SPECSTOP)/cssom |
| 7 | +IDLGEN = $(GENDIR)/cssom-generate-json.js |
| 8 | +SPECGEN = $(GENDIR)/cssom-generate.js |
| 9 | +SPECSRC = cssom-view-source |
| 10 | + |
| 11 | +IDLDRIVER = cssom-view.idl |
| 12 | +IDLFRAGS = idl/CaretPosition.idl \ |
| 13 | + idl/ClientRect.idl \ |
| 14 | + idl/ClientRectList.idl \ |
| 15 | + idl/Document.idl \ |
| 16 | + idl/Element.idl \ |
| 17 | + idl/HTMLElement.idl \ |
| 18 | + idl/MediaQueryList.idl \ |
| 19 | + idl/MediaQueryListListener.idl \ |
| 20 | + idl/MouseEvent.idl \ |
| 21 | + idl/Range.idl \ |
| 22 | + idl/Screen.idl \ |
| 23 | + idl/Window.idl |
| 24 | +JSONFILE = cssom-view.json |
| 25 | +XREFS = data/xrefs/css/cssom-view.json |
| 26 | +EDFILE = Overview.html |
| 27 | +TRFILE = TR/Overview.html |
8 | 28 |
|
9 | 29 | all: $(EDFILE)
|
10 | 30 |
|
11 |
| -Overview.src.html: cssom-view-source |
12 |
| - $(CP) $< $@ |
| 31 | +$(JSONFILE): $(IDLDRIVER) $(IDLFRAGS) $(IDLGEN) |
| 32 | + gcc -E -x c -P -Iidl -C $(IDLDRIVER) | node $(IDLGEN) > $@ |
| 33 | + |
| 34 | +Overview.src.html: $(SPECGEN) $(JSONFILE) $(SPECSRC) |
| 35 | + $(NODE) $(SPECGEN) $(JSONFILE) $(SPECSRC) > $@ |
13 | 36 |
|
14 | 37 | $(XREFS): Overview.src.html Makefile
|
15 | 38 | $(ANOLIS) --dump-xrefs=$@ $< /tmp/spec; $(RM) /tmp/spec
|
16 | 39 |
|
17 | 40 | $(EDFILE): Overview.src.html $(XREFS) Makefile
|
18 | 41 | $(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
|
19 |
| - --w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-view" \ |
| 42 | + --w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \ |
20 | 43 | --force-html4-id --filter=".publish" $< $@
|
21 | 44 |
|
22 | 45 | draft: $(EDFILE)
|
23 | 46 |
|
24 | 47 | $(TRFILE): Overview.src.html $(XREFS) Makefile
|
25 | 48 | $(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
|
26 |
| - --w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-view" \ |
| 49 | + --w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \ |
27 | 50 | --force-html4-id --filter=".dontpublish" --pubdate="$(PUBDATE)" --w3c-status=WD $< $@
|
28 | 51 |
|
29 | 52 | publish: $(TRFILE)
|
30 | 53 |
|
31 | 54 | clean::
|
32 |
| - $(RM) $(EDFILE) |
33 | 55 | $(RM) Overview.src.html
|
| 56 | + $(RM) $(JSONFILE) |
| 57 | + |
| 58 | +cleanall:: clean |
| 59 | + $(RM) $(EDFILE) |
34 | 60 | echo '{ "definitions": {}, "url": "http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#" }' > $(XREFS)
|
| 61 | + |
| 62 | + |
0 commit comments