Files
fsfe-website/about/printable/Makefile
gollo 5b77ef12f1 2009-07-09 Martin Gollowitzer <gollo@fsfe.org>
* moved from /documents/

svn path=/trunk/; revision=12932
2009-07-09 08:06:27 +00:00

34 lines
1.4 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

sources := $(wildcard folder.??.xhtml) $(wildcard ../../projects/*/leaflet-*.??.xhtml)
# FIXME: Sorry, no support for other character sets than Latin-1 yet
foldersources := $(filter-out %.el.xhtml,$(wildcard folder.??.xhtml))
leafletsources := $(filter-out %.el.xhtml,$(sources))
pdfs_F := $(foldersources:.xhtml=.F.pdf)
pdfs_G := $(leafletsources:.xhtml=.G.pdf)
pdfs_0 := $(leafletsources:.xhtml=.0.pdf)
# FIXME: How can we cause the rebuild to be run also when a file is deleted?
.PHONY: all
all: printable.en.xml $(pdfs_F) $(pdfs_G) $(pdfs_0)
printable.en.xml: $(sources) mk-printable-en-xml.sh
/bin/bash mk-printable-en-xml.sh $(sources)
%.F.pdf: %.xhtml mk-tex-a3.xsl
xsltproc --stringparam language $(subst .,,$(suffix $*)) mk-tex-a3.xsl $< | sed -e 's/ /~/' > $*.F.tex
pdflatex -interaction=nonstopmode -output-directory $(*D) $*.F.tex || exit 0
rm --force $*.F.tex $*.F.log $*.F.aux
%.G.pdf: %.xhtml mk-tex-a4.xsl
xsltproc --stringparam language $(subst .,,$(suffix $*)) --stringparam style G mk-tex-a4.xsl $< | sed -e 's/ /~/' > $*.G.tex
pdflatex -interaction=nonstopmode -output-directory $(*D) $*.G.tex || exit 0
rm --force $*.G.tex $*.G.log $*.G.aux
%.0.pdf: %.xhtml mk-tex-a4.xsl
xsltproc --stringparam language $(subst .,,$(suffix $*)) --stringparam style 0 mk-tex-a4.xsl $< | sed -e 's/ /~/' > $*.0.tex
pdflatex -interaction=nonstopmode -output-directory $(*D) $*.0.tex || exit 0
rm --force $*.0.tex $*.0.log $*.0.aux