Make symlink when srcdir=dstdir
[metaproxy-moved-to-github.git] / doc / Makefile.am
index f1fb995..7c02e85 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.10 2006-04-24 06:40:50 adam Exp $
+## $Id: Makefile.am,v 1.19 2006-05-26 20:44:01 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUBDIRS = common
@@ -26,38 +26,41 @@ 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.multi.html \
+       multidb.picture.html \
+       multidb.virt_db.html \
+       multidb.what.html \
        other.source.files.html \
        overview.filter.types.html \
        overview.xml.structure.html \
        refguide.html
 
-PNGFILES=
-EPSFILES=
+PNGFILES=multi.png
 
 doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES)
 man_MANS = $(MANFILES)
 
-EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(EPSFILES) $(man_MANS)
+EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
 
-$(HTMLFILES): $(XMLFILES)
-       jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
+$(HTMLFILES): $(XMLFILES) multi.png
+       xsltproc common/html.xsl $(MAINXML)
 
 .xml.3mp:
-       docbook2man $<
+       xsltproc common/man.xsl $<
 
 .xml.1:
-       docbook2man $<
+       xsltproc common/man.xsl $<
 
-metaproxy.pdf: $(XMLFILES)
-       for i in $(PNGFILES) $(EPSFILES); do \
+metaproxy.pdf: $(XMLFILES) multi.pdf
+       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)
@@ -73,13 +76,22 @@ 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
        rm -f $@
        xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@
 
+multi.png: multi.svg
+       inkscape --export-png=$@ --export-width=800 --export-area-drawing $?
+
+multi.eps: multi.svg
+       inkscape --export-eps=$@ --export-bbox-page $?
+
+%.pdf: %.eps
+       epstopdf -hires $?
+
 clean-data-hook:
        rm -f [0-9]* *.bak