[Swift-commit] r3778 - trunk/docs

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Dec 13 15:10:34 CST 2010


Author: wozniak
Date: 2010-12-13 15:10:34 -0600 (Mon, 13 Dec 2010)
New Revision: 3778

Modified:
   trunk/docs/Makefile
Log:
Adding targets to Makefile...


Modified: trunk/docs/Makefile
===================================================================
--- trunk/docs/Makefile	2010-12-13 21:09:57 UTC (rev 3777)
+++ trunk/docs/Makefile	2010-12-13 21:10:34 UTC (rev 3778)
@@ -1,5 +1,7 @@
-#!/bin/sh
 
+# FOP = fop
+FOP = fop/fop.sh
+
 all: phps pdfs
 
 phps: userguide.php tutorial.php tutorial-live.php quickstartguide.php reallyquickstartguide.php provenance.php historical/languagespec.php historical/languagespec-0.6.php log-processing.php plot-tour.php
@@ -8,15 +10,26 @@
 
 pdfs: userguide.pdf tutorial.pdf tutorial-live.pdf quickstartguide.pdf reallyquickstartguide.pdf provenance.pdf historical/languagespec.pdf historical/languagespec-0.6.pdf log-processing.pdf
 
+GUIDE_PHP=$(shell find userguide -name "*.php" )
+GUIDE_HTML=$(patsubst %.php,%.html,$(GUIDE_PHP))
+
+guide_html: $(GUIDE_HTML)
+
 chunked-userguide: userguide.xml
 	./build-chunked-userguide.sh
 
 %.php: %.xml formatting/swiftsh_html.xsl
 	xsltproc --nonet formatting/swiftsh_html.xsl $<
 	sed -e "s/index.html#/#/g" index.html >$@
+	chmod a+rx $@
 
 %.pdf: %.xml formatting/vdl2_fo.xsl
-	fop/fop.sh -xsl formatting/vdl2_fo.xsl -xml $< -pdf $@
+	$(FOP) -xsl formatting/vdl2_fo.xsl -xml $< -pdf $@
+	chmod a+rx $@
 
 %.html: %.php
 	cp $< $@
+	chmod a+rx $@
+
+clean:
+	rm -fv *.php userguide/*.php




More information about the Swift-commit mailing list