Index: openacs-4/packages/acs-core-docs/www/xml/Makefile =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/Makefile,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/xml/Makefile 10 Aug 2002 21:38:38 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/xml/Makefile 22 Sep 2002 05:16:25 -0000 1.3 @@ -1,17 +1,32 @@ # A very simple Makefile to generate the HTML docs # @author Vinod Kurup (vinod@kurup.com) -# 2002-08-10 +# @author Modified by Roberto Mello (rmello@fslc.usu.edu) to have PDF generation +# plus refactored it a bit to have rules and dependencies. # +# @creation-date 2002-08-10 +# @modified-date 2002-09-21 +# # This simply copys all the 'files' and 'images' # to the appropriate directory in www so that they are accessible # # It then moves into the www directory and runs the XSLT generation +# and runs htmldoc to generate PDFs. # # I'm a Makefile newbie, so feel free to comment/slash/change. -all: +# Paths +XSLTPROC=/usr/bin/xsltproc +HTMLDOC=/usr/bin/htmldoc + +all: html pdf + +prelim: cp -u files/*.{txt,html} ../files/ cp -u images/*.{pdf,png,gif,jpg} ../images/ cp -u openacs.css .. - cd .. ; \ - xsltproc xml/openacs.xsl xml/index.xml + +html: prelim + cd .. ; $(XSLTPROC) xml/openacs.xsl xml/index.xml + +pdf: html + $(HTMLDOC) --batch ../for-everyone.book ../for-admins.book ../for-developers.book