X-Git-Url: https://pere.pagekite.me/gitweb/text-epistlene.git/blobdiff_plain/884f3b5532818e9d0cf57edfc79f8ff6d04d7902..da908b0f4ac7d83511ffb3245e3d19097dc15e63:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index d2f199c..816a9c5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SOURCE = gaysir_epistlene PANDOC_OPTS = \ - -t docbook4 + -t docbook4 --top-level-division=part DBLATEX_OPTS = \ -p pdf.xsl @@ -18,11 +18,21 @@ $(SOURCE).pdf: $(SOURCE).xml Makefile pdf.xsl $(SOURCE)-body.xml: $(SOURCE).rst Makefile pandoc -s -o $@ $(PANDOC_OPTS) $(SOURCE).rst sed -i \ - -e 's%.*%%g' \ + -e 's%article%book%g' \ + -e 's%[0-9]*%%g' \ + -e 's%^
%
%g' \ + -e 's%^
%
%g' \ -e 's%“%%g' \ -e 's%”%%g' $@ .xml.epub: dbtoepub -s epub.xsl $^ -o $@ +clean: + $(RM) *~ + +distclean: clean + $(RM) gaysir_epistlene.epub gaysir_epistlene.pdf + $(RM) gaysir_epistlene-body.xml + .SUFFIXES: .xml .html .pdf .epub