1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
# Commands to build the website and the documentation.
#
# Requires the following external programs and packages:
# xmlto, xsltproc, docbook stylesheets (http://docbook.sourceforge.net/),
# xmltex, passivetex.
#
# On a Debian system, you can get all of these by running:
# apt-get install xmlto docbook-xsl passivetex
PROC=xsltproc --nonet
.PHONY : clean send
all: index.html research.html compilation.html testimonials.html install.html \
irc.html roadmap.html safety.html manual.html manual.pdf manual.ps
send: all send_manual_pdf send_manual_ps
scp -r *.css *.html .htaccess images bonniot@shell.sourceforge.net:/home/groups/n/ni/nice/htdocs
send_manual_pdf: manual.pdf
scp manual.pdf bonniot@shell.sourceforge.net:/home/groups/n/ni/nice/htdocs/NiceManual.pdf
touch send_manual_pdf
send_manual_ps: manual.ps
scp manual.ps bonniot@shell.sourceforge.net:/home/groups/n/ni/nice/htdocs/NiceManual.ps
touch send_manual_ps
old: safety.html
manual.html: manual.xsl manual.xml
if ! $(PROC) manual.xsl manual.xml > $@; then rm manual.html; fi
manual.pdf manual.ps: manual.xml
xmlto $(shell expr match $@ 'manual\.\(.*\)') manual.xml
manual.pdf: manual.xml
xsltproc --stringparam fop.extensions 1 -o manual.fo /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl manual.xml
fop manual.fo -pdf manual.pdf
rm manual.fo
manual.ps: manual.pdf
pdftops manual.pdf
%.html: %.xml new.xsl
if ! $(PROC) new.xsl $*.xml > $@; then rm $@; fi
# Old style
safety.html: manual.xsl safety.xml
if ! $(PROC) manual.xsl safety.xml > $@; then rm safety.html; fi
|