22#
33# PostgreSQL documentation makefile
44#
5- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.60 2003/11/29 19:51:36 pgsql Exp $
5+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.61 2003/12/11 22:10:51 petere Exp $
66#
77# ----------------------------------------------------------------------------
88
@@ -22,6 +22,13 @@ JADE = jade
2222endif
2323SGMLINCLUDE = -D$(srcdir )
2424
25+ # If this is a vpath build, some generated SGML will be in the build
26+ # tree, so we need to make sure we look there as well as in the
27+ # source tree
28+ ifeq ($(vpath_build ) , yes)
29+ SGMLINCLUDE += -D .
30+ endif
31+
2532ifndef NSGMLS
2633NSGMLS = nsgmls
2734endif
@@ -80,6 +87,9 @@ all: html
8087html : postgres.sgml$(ALLSGML ) stylesheet.dsl
8188@rm -f* .html
8289$(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -i output-html -t sgml$<
90+ ifeq ($(vpath_build ) , yes)
91+ @cp $(srcdir)/stylesheet.css .
92+ endif
8393
8494
8595COLLATEINDEX := LC_ALL=C$(PERL ) $(COLLATEINDEX ) -f -g