Index: openacs-4/packages/acs-core-docs/www/xml/files/samplenote/Makefile =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/files/samplenote/Attic/Makefile,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-core-docs/www/xml/files/samplenote/Makefile 2 Apr 2003 17:54:38 -0000 1.1.2.1 @@ -0,0 +1,32 @@ +# A very simple Makefile to generate the HTML docs +# @author Vinod Kurup (vinod@kurup.com) +# @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. + +# Paths +XSLTPROC=/usr/bin/xsltproc +HTMLDOC=/usr/bin/htmldoc + +all: html + +prelim: + cp -u files/*.{txt,html} ../files/ + cp -u images/*.{pdf,png,gif,jpg} ../images/ + cp -u openacs.css .. + +html: prelim + cd .. ; $(XSLTPROC) xml/openacs.xsl xml/index.xml + +pdf: html + $(HTMLDOC) --batch ../for-everyone.book ../for-admins.book ../for-developers.book