Add doc-clean target
[pazpar2-moved-to-github.git] / doc / Makefile.am
index 74454b6..13bbb93 100644 (file)
@@ -43,7 +43,7 @@ index.tkl: $(XMLFILES)
 
 pazpar2.pdf: $(XMLFILES)
        rm -f pazpar2.pdf
-       dblatex -P latex.class.options=a4paper,12pt,twoside,openright $(MAINXML) && mv book.pdf pazpar2.pdf
+       $(PDF_COMPILE) $(MAINXML) && mv book.pdf pazpar2.pdf
 
 jade-check: $(XMLFILES)
        jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
@@ -64,6 +64,9 @@ dist-hook:
                cp $$p $(distdir); \
        done
 
+doc-clean:
+       rm -f *.html *.[0-9] *.pdf *.tkl
+
 install-data-hook:
        if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
        for p in $$d/*.html; do \