Allow building documentation outside source tree.
authorPeter Eisentraut <[email protected]>
Sun, 25 Mar 2001 08:32:24 +0000 (08:32 +0000)
committerPeter Eisentraut <[email protected]>
Sun, 25 Mar 2001 08:32:24 +0000 (08:32 +0000)
from Ian Lance Taylor

doc/src/Makefile
doc/src/sgml/Makefile

index 486df037840c3814076e8c14f510b7e958c1e349..48bfa3ae08fd7a38dd6dcb9daac87841c15fe103 100644 (file)
@@ -43,17 +43,17 @@ admin.tar developer.tar reference.tar user.tar:
 programmer.tar:
        $(MAKE) -C sgml clean
        $(MAKE) -C sgml programmer.html
-       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif connections.gif
+       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics catalogs.gif connections.gif
 
 tutorial.tar:
        $(MAKE) -C sgml clean
        $(MAKE) -C sgml tutorial.html
-       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics clientserver.gif
+       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics clientserver.gif
 
 postgres.tar:
        $(MAKE) -C sgml clean
        $(MAKE) -C sgml postgres.html
-       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif clientserver.gif connections.gif
+       cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics catalogs.gif clientserver.gif connections.gif
 
 man.tar:
        $(MAKE) -C sgml man
index 1e09be62e6e0b06d15f8b09c033097c6c03aec58..285fe18f8c532ffd1a00f978bf3fcb5b6cf6c3f3 100644 (file)
@@ -26,7 +26,7 @@ endif
 ifndef JADE
 JADE = jade
 endif
-SGMLINCLUDE = -D ref -D ../graphics
+SGMLINCLUDE = -D $(srcdir) -D $(srcdir)/ref -D $(srcdir)/../graphics
 
 ifndef NSGMLS
 NSGMLS = nsgmls