Use PDF_COMPILE for PDF creatio
[yazpp-moved-to-github.git] / doc / Makefile.am
index 4702c5f..c46d3ce 100644 (file)
@@ -1,6 +1,3 @@
-## $Id: Makefile.am,v 1.22 2006-06-28 21:43:45 adam Exp $
-docdir=$(datadir)/doc/@PACKAGE@
-
 SUBDIRS = common
 
 XMLFILES = \
@@ -17,20 +14,7 @@ MANFILES = yazpp-config.8
 
 REFFILES = yazpp-config-man.xml
 
-HTMLFILES = \
- api.html \
- implementations.html \
- index.html \
- installation.html \
- introduction.html \
- license.html \
- windows.html \
- zoom-connection.html \
- zoom-exception.html \
- zoom-query.html \
- zoom-record.html \
- zoom-resultset.html \
- zoom.html
+HTMLFILES = index.html
 
 doc_DATA = $(HTMLFILES) 
 
@@ -40,9 +24,10 @@ EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
        entities.ent local.ent.in
 
 $(HTMLFILES): $(XMLFILES)
+       rm -f *.html
        $(HTML_COMPILE) $(TOP)
 
-index.tkl: $(XMLFILES) common/tkl.xsl
+index.tkl: $(XMLFILES)
        $(TKL_COMPILE) $(TOP)
 
 yazpp-config.8: yazpp-config-man.xml
@@ -50,27 +35,22 @@ yazpp-config.8: yazpp-config-man.xml
 
 yazpp.pdf: $(XMLFILES)
        if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
-       jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
-       pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
-       pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
-       pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
-
+       $(PDF_COMPILE) $(TOP)
 
 clean-data-hook:
        rm -f [0-9]* *.bak
 
 dist-hook:
-       if test -f index.html; then for f in *.html; do \
-               found=0; \
-               b=`basename $$f`; \
-               for h in $(HTMLFILES); do \
-                       if test "$$h" = "$$b"; then \
-                               found=1; \
-                       fi \
-               done; \
-               if test "$$found" = "0"; then \
-                       echo "$$h not found in HTMLFILES"; \
-                       exit 1; \
-               fi \
-       done; fi
-
+       if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
+       for p in $$d/*.html; do \
+               cp $$p $(distdir); \
+       done
+
+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); \
+       done
+
+uninstall-hook:
+       rm -r $(DESTDIR)$(docdir)