Make second fix for symlink when srcdir=dstdir
[metaproxy-moved-to-github.git] / doc / Makefile.am
index 01818eb..168ecbb 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.13 2006-04-27 13:29:40 mike Exp $
+## $Id: Makefile.am,v 1.20 2006-05-26 20:47:28 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUBDIRS = common
@@ -26,41 +26,42 @@ 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 \
        refguide.html
 
 PNGFILES=multi.png
-EPSFILES=multi.eps
 
 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) 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) $(EPSFILES); do \
-               if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
+       for i in $(PNGFILES) common/id.png multi.pdf; do \
+               if test ! -f $$i; then ln -s $(srcdir)/$$i $$i; fi; \
        done
        jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
        rm -f metaproxy.tex
@@ -75,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
@@ -86,10 +87,10 @@ multi.png: multi.svg
        inkscape --export-png=$@ --export-width=800 --export-area-drawing $?
 
 multi.eps: multi.svg
-       inkscape --export-eps=$@ $?
+       inkscape --export-eps=$@ --export-bbox-page $?
 
 %.pdf: %.eps
-       epstodf $?
+       epstopdf -hires $?
 
 clean-data-hook:
        rm -f [0-9]* *.bak