* create dirs ${prefix}/share/doc/GiNaC/{tutorial,reference} only if
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Thu, 1 Nov 2001 17:31:55 +0000 (17:31 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Thu, 1 Nov 2001 17:31:55 +0000 (17:31 +0000)
  non-empty.

doc/reference/Makefile.am
doc/tutorial/Makefile.am

index cbcb2e4..ef45fc1 100644 (file)
@@ -45,8 +45,7 @@ latex/reference.ps: latex/reference.dvi
 reference.ps: latex latex/reference.ps
        cp ${srcdir}/latex/reference.ps reference.ps
 
-ginacdocdir = $(datadir)/doc/GiNaC
-ginacreferencedir = $(ginacdocdir)/reference
+ginacreferencedir = `test -z "@REFERENCE_TARGETS@" || echo @datadir@/doc/GiNaC/reference`
 ginacreference_DATA = @REFERENCE_TARGETS@
 
 CLEANFILES = *.html *.gif doxygen.css *.ps latex/*
index af8ac28..461de9a 100644 (file)
@@ -31,8 +31,7 @@ ginac.dvi: $(EPS)
 ginac.html: ginac.texi version.texi $(PNG)
        $(MAKEINFO) --html $< -I ${srcdir}
 
-ginacdocdir = $(datadir)/doc/GiNaC
-ginactutorialdir = $(ginacdocdir)/tutorial
+ginactutorialdir = `test -z "@TUTORIAL_TARGETS@" || echo @datadir@/doc/GiNaC/tutorial`
 ginactutorial_DATA = @TUTORIAL_TARGETS@
 
 CLEANFILES = $(EPS) $(PNG) ginac.html