Pazpar2 1.4.4-2 for squeeze
[pazpar2-moved-to-github.git] / doc / Makefile.am
index 6d842fd..7c8f0f5 100644 (file)
@@ -1,9 +1,9 @@
 # This file is part of Pazpar2.
 SUBDIRS = common
 
-SUFFIXES=.1 .5 .7 .8 .pdf .tkl .esp .xml 
+SUFFIXES=.1 .5 .7 .8 .pdf .esp .xml 
 
-XMLFILES = book.xml manref.xml
+XMLFILES = book.xml manref.xml gpl-2.0.xml
 
 MAINXML = $(srcdir)/book.xml
 
@@ -38,12 +38,9 @@ $(HTMLFILES): $(XMLFILES) $(PNGFILES)
 .xml.8:
        $(MAN_COMPILE) $<
 
-index.tkl: $(XMLFILES)
-       $(TKL_COMPILE) $(MAINXML)
-
 pazpar2.pdf: $(XMLFILES)
        rm -f pazpar2.pdf
-       dblatex $(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,10 +61,13 @@ dist-hook:
                cp $$p $(distdir); \
        done
 
+doc-clean:
+       rm -f manref.xml *.html *.[0-9] *.pdf
+
 install-data-hook:
        if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
        for p in $$d/*.html; do \
-               $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
+               $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
        done
 
 uninstall-hook: