1 SOURCE = gaysir_epistlene
4 -t docbook4 --top-level-division=part
9 all: $(SOURCE).pdf $(SOURCE).epub
11 $(SOURCE).xml: $(SOURCE)-body.xml Makefile book.xml bookinfo.xml
12 xmllint --nonet --xinclude --postvalid book.xml > $@.new && \
15 $(SOURCE).pdf: $(SOURCE).xml Makefile pdf.xsl
16 dblatex $(DBLATEX_OPTS) $(SOURCE).xml -o $@
18 $(SOURCE)-body.xml: $(SOURCE).rst Makefile
19 pandoc -s -o $@ $(PANDOC_OPTS) $(SOURCE).rst
21 -e 's%article%book%g' \
22 -e 's%<title>[0-9]*</title>%<title></title>%g' \
23 -e 's%^ <blockquote>% <partintro><blockquote>%g' \
24 -e 's%^ </blockquote>% </blockquote></partintro>%g' \
26 -e 's%”%</quote>%g' $@
29 dbtoepub -s epub.xsl $^ -o $@
32 xmlto html-nochunks $^
38 $(RM) gaysir_epistlene.epub gaysir_epistlene.pdf
39 $(RM) gaysir_epistlene-body.xml
41 .SUFFIXES: .xml .html .pdf .epub