###################################################################### # # $Id: Makefile,v 1.1 2004/01/22 19:27:46 jmates Exp $ # # The author disclaims all copyrights and releases this document into # the public domain. # # Aids building of PDF from XML sources with a XSL-FO rendering tool. # ###################################################################### # # CONSTANTS TARGET = talks/smtpauth-starttls # TODO better way to do this? (GNU make globbing or something?) # so don't have to list .xml filenames herein... SRCXML = smtpauth-starttls.xml FOS = ${SRCXML:.xml=.fo} PDF = ${SRCXML:.xml=.pdf} FOPDF=timeout 2m java org.apache.fop.apps.Fop FOPDFFLAGS= XMLFO=xsltproc XMLFOFLAGS=--novalid ../../xml-support/eolas/fo-slides.xsl ###################################################################### # # RULES .SUFFIXES : .xml .fo .pdf # TODO may need a :: rule if building to slides and printable output .xml.fo: ${XMLFO} ${XMLFOFLAGS} $< > $@ .fo.pdf: ${FOPDF} ${FOPDFFLAGS} $< $@ all: ${PDF} # does this work for multiple documents? ${FOS}: ${SRCXML} # Kluge! :) dist: all @cp *.pdf ~/Reference/Talks @cvs2cl.pl -r --stdout --xml > changes.xml @scp -p Makefile *.* sial.org:www/$(TARGET) @rm changes.xml @xsltproc ../../xml-support/eolas/multipages.xsl smtpauth-starttls.xml \ | perl -ple 'BEGIN { $$n=0; select $$fh }' \ -e 'open $$fh, ">slides/slide$$n.html" and $$n++ if /^\s*/dev/null || true @cd slides && rm *.html 2>/dev/null || true test: @xsltproc ../../xml-support/eolas/multipages.xsl smtpauth-starttls.xml \ | perl -ple 'BEGIN { $$n=0; select $$fh }' \ -e 'open $$fh, ">slides/slide$$n.html" and $$n++ if /^\s*