Make symlink when srcdir=dstdir
[metaproxy-moved-to-github.git] / doc / Makefile.am
index 93cb11f..7c02e85 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.14 2006-04-27 16:38:13 adam Exp $
+## $Id: Makefile.am,v 1.19 2006-05-26 20:44:01 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUBDIRS = common
@@ -26,16 +26,18 @@ HTMLFILES = architecture.html \
        filterref.html \
        filters.html \
        future.directions.html \
+       index.html \
        individual.classes.html \
        installation.html \
        installation.debian.html \
        installation.windows.html \
        introduction.html \
        licence.html \
-       metaproxy.html \
        multidb.html \
-       multidb.virt_db.html \
+       multidb.multi.html \
        multidb.picture.html \
+       multidb.virt_db.html \
+       multidb.what.html \
        other.source.files.html \
        overview.filter.types.html \
        overview.xml.structure.html \
@@ -49,16 +51,16 @@ man_MANS = $(MANFILES)
 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
 
 $(HTMLFILES): $(XMLFILES) multi.png
-       jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
+       xsltproc common/html.xsl $(MAINXML)
 
 .xml.3mp:
-       docbook2man $<
+       xsltproc common/man.xsl $<
 
 .xml.1:
-       docbook2man $<
+       xsltproc common/man.xsl $<
 
 metaproxy.pdf: $(XMLFILES) multi.pdf
-       for i in $(PNGFILES) multi.pdf; do \
+       for i in $(PNGFILES) common/id.png multi.pdf; do \
                if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
        done
        jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
@@ -74,7 +76,7 @@ index.tkl: $(XMLFILES) common/tkl.xsl
 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
        rm -f manref.xml
        for i in $(XMLMAN); do \
-               xsltproc $(srcdir)/common/ref2dbinc.xsl $$i | sed 1d >> manref.xml; \
+               xsltproc $(srcdir)/common/ref2dbinc.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
        done
 
 progref.xml: metaproxy.xml