Reorg stage Makefile for XML
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Mon, 15 Apr 2013 08:52:38 -0400
changeset 6165 75ac75c720ab
parent 6164 e9c18c1dccb0
child 6166 2ed108315f93
Reorg stage Makefile for XML
xml/Makefile
--- a/xml/Makefile	Mon Apr 15 08:52:11 2013 -0400
+++ b/xml/Makefile	Mon Apr 15 08:52:38 2013 -0400
@@ -4,14 +4,12 @@
 	xsltproc --nonet --output prov.xsd.html xs3p/xs3p.xsl schema/prov.xsd
 
 # http://phantomjs.org/download.html
-PHANTOM_JS=$(HOME)/Downloads/phantomjs-1.8.1-linux-x86_64/bin/phantomjs
-
+PHANTOM_JS=$(HOME)/Downloads/phantomjs-1.9.0-linux-x86_64/bin/phantomjs
+HTMLDIFF=../model/diff/htmldiff
+LAST=WD-prov-xml-20130312
+NEXT=NOTE-prov-xml-20130430
+DOC=prov-xml.html
 
-stage.xml:
-	$(MAKE) DOCUMENT_TO_STAGE=prov-xml.html  RELEASE_DIR=releases/WD-prov-xml-20130312 stage.document.html
-	../model/diff/htmldiff  releases/WD-prov-xml-20121211/Overview.html releases/WD-prov-xml-20130312/Overview.html  > diff.html
-	cp diff.html releases/WD-prov-xml-20130312/
-
-
-stage.document.html:
-	$(PHANTOM_JS) ../model/respec2html.js $(DOCUMENT_TO_STAGE) $(RELEASE_DIR)/Overview.html
+stage:
+	$(PHANTOM_JS) ../model/respec2html.js $(DOC) releases/$(NEXT)/Overview.html
+	$(HTMLDIFF) releases/$(LAST)/Overview.html releases/$(NEXT)/Overview.html > releases/$(NEXT)/diff.html