Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.3KB

123456789101112131415161718192021222324252627282930
  1. foldersources := $(wildcard folder.??.xhtml)
  2. leafletsources := $(wildcard folder.??.xhtml) $(wildcard ../../projects/*/leaflet-*.??.xhtml)
  3. pdfs_F := $(foldersources:.xhtml=.F.pdf)
  4. pdfs_G := $(leafletsources:.xhtml=.G.pdf)
  5. pdfs_0 := $(leafletsources:.xhtml=.0.pdf)
  6. # FIXME: How can we cause the rebuild to be run also when a file is deleted?
  7. .PHONY: all
  8. all: printable.en.xml $(pdfs_F) $(pdfs_G) $(pdfs_0)
  9. printable.en.xml: $(leafletsources) mk-printable-en-xml.sh get_h1.xsl get_moreinfo.xsl
  10. /bin/bash mk-printable-en-xml.sh $(leafletsources)
  11. %.F.pdf: %.xhtml mk-tex-a3.xsl
  12. xsltproc --stringparam language $(subst .,,$(suffix $*)) mk-tex-a3.xsl $< | sed -e 's/ /~/' > $*.F.tex
  13. pdflatex -interaction=nonstopmode -output-directory $(*D) $*.F.tex || exit 0
  14. rm --force $*.F.tex $*.F.log $*.F.aux
  15. %.G.pdf: %.xhtml mk-tex-a4.xsl
  16. xsltproc --stringparam language $(subst .,,$(suffix $*)) --stringparam style G mk-tex-a4.xsl $< | sed -e 's/ /~/' > $*.G.tex
  17. pdflatex -interaction=nonstopmode -output-directory $(*D) $*.G.tex || exit 0
  18. rm --force $*.G.tex $*.G.log $*.G.aux
  19. %.0.pdf: %.xhtml mk-tex-a4.xsl
  20. xsltproc --stringparam language $(subst .,,$(suffix $*)) --stringparam style 0 mk-tex-a4.xsl $< | sed -e 's/ /~/' > $*.0.tex
  21. pdflatex -interaction=nonstopmode -output-directory $(*D) $*.0.tex || exit 0
  22. rm --force $*.0.tex $*.0.log $*.0.aux