summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-07-23 21:26:46 +0100
committerVincent Sanders <vince@kyllikki.org>2015-07-23 21:26:46 +0100
commitbdd9f59573d3c34ed9bf4bd029ca17a846c3602a (patch)
treeab4fb740332faa8f7035ac851f23b5081d3619d7
parent70fd706e65ba0470ac7d289646efa6b785c91ccb (diff)
downloadnetsurf-bdd9f59573d3c34ed9bf4bd029ca17a846c3602a.tar.gz
netsurf-bdd9f59573d3c34ed9bf4bd029ca17a846c3602a.tar.bz2
Attempt to extract the uievents IDL
-rw-r--r--javascript/WebIDL/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/javascript/WebIDL/Makefile b/javascript/WebIDL/Makefile
index d53446a15..cebc7085e 100644
--- a/javascript/WebIDL/Makefile
+++ b/javascript/WebIDL/Makefile
@@ -12,7 +12,7 @@
.PHONY:all clean
-all: dom.idl html.idl
+all: dom.idl html.idl uievents.idl
.INTERMEDIATE:dom-spec.html dom-spec.xml dom-idl.html html-spec.html html-spec.xml html-idl.html
@@ -23,8 +23,14 @@ dom-spec.html:
html-spec.html:
curl -s https://html.spec.whatwg.org/ -o $@
+uievents-spec.html:
+ curl -s https://w3c.github.io/uievents/ -o $@
+
%-spec.xml: %-spec.html
- -tidy -q -f $@.errors --new-blocklevel-tags header,hgroup,figure,time,main,nav,svg,rect,text,image,mark,figcaption -o $@ -asxml $<
+ -tidy -q -f $@.errors --new-blocklevel-tags header,hgroup,figure,time,main,nav,svg,rect,text,image,mark,figcaption,section -o $@ -asxml $<
+
+uievents-idl.html: uievents-spec.xml
+ hxselect 'dl.idl' < $< | hxremove 'p' >> $@
%-idl.html: %-spec.xml
hxselect 'pre[class="idl"]' < $< > $@
@@ -37,6 +43,5 @@ html-spec.html:
cat $< | w3m -dump -T text/html >>$@
-
clean:
${RM} dom.idl html.idl dom-spec.html dom-spec.xml dom-idl.html html-spec.html html-spec.xml html-idl.html