html5/spec Makefile,1.3,1.4

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv20838

Modified Files:
	Makefile 
Log Message:
added "clean" target


Index: Makefile
===================================================================
RCS file: /sources/public/html5/spec/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile	18 Jul 2009 09:57:12 -0000	1.3
+++ Makefile	18 Jul 2009 10:20:59 -0000	1.4
@@ -1,23 +1,34 @@
-CURL=curl
-PARSE=./parse.py
-PARSEFLAGS=--xml
-XSLTPROC=xsltproc
-
 PYTHON=python
 PYTHONFLAGS=
 
 SPLITTER=tools/spec-splitter.py
 SPLITTERFLAGS=
 
+TEE=tee
+TEEFLAGS=
+
+GREP=grep
+GREPFLAGS=
+
+PERL=perl
+PERLFLAGS=
+
 CURL=curl
 CURLFLAGS=-s
+PARSE=./parse.py
+PARSEFLAGS=--xml
+XSLTPROC=xsltproc
 
 ANNODB=http://www.whatwg.org/specs/web-apps/current-work/status.cgi?action=get-all-annotations
 
-all: fragment-links.js
+all: MANIFEST
 
-fragment-links.js: Overview.html
-	$(PYTHON) $(PYTHONFLAGS) $(SPLITTER) $(SPLITTERFLAGS) $< .
+MANIFEST: Overview.html
+	$(PYTHON) $(PYTHONFLAGS) $(SPLITTER) $(SPLITTERFLAGS) $< . \
+	  | $(TEE) $(TEEFLAGS) \
+	  | $(GREP) $(GREPFLAGS) '<h2>' \
+	  | cut -c8- \
+	  | $(PERL) $(PERLFLAGS) -pe "s/(^[^ ]+)\s*\n/\1.html\n/" > $@
 
 toc-status.html: annotations.xml spec.xml tocmix.xsl
 	$(XSLTPROC) --novalid --output $@ \
@@ -29,3 +40,6 @@
 
 spec.xml: Overview.html
 	$(PARSE) $(PARSEFLAGS) $< > $@
+
+clean:
+	$(RM) MANIFEST

Received on Saturday, 18 July 2009 10:21:10 UTC