diff options
author | Peter Eisentraut | 2003-12-11 22:10:51 +0000 |
---|---|---|
committer | Peter Eisentraut | 2003-12-11 22:10:51 +0000 |
commit | 42610b1b8a995d792c5f8ba760c1197a7155393e (patch) | |
tree | 4d0665a7846d3063d9a06db5181f217579abd0b4 | |
parent | 3a613816a07e4963967ff77e94053304c210d8c5 (diff) |
Fix for vpath build
-rw-r--r-- | doc/src/sgml/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index ccfbfcf2217..5ffc026c552 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.60 2003/11/29 19:51:36 pgsql Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.61 2003/12/11 22:10:51 petere Exp $ # #---------------------------------------------------------------------------- @@ -22,6 +22,13 @@ JADE = jade endif SGMLINCLUDE = -D $(srcdir) +# If this is a vpath build, some generated SGML will be in the build +# tree, so we need to make sure we look there as well as in the +# source tree +ifeq ($(vpath_build), yes) +SGMLINCLUDE += -D . +endif + ifndef NSGMLS NSGMLS = nsgmls endif @@ -80,6 +87,9 @@ all: html html: postgres.sgml $(ALLSGML) stylesheet.dsl @rm -f *.html $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml $< +ifeq ($(vpath_build), yes) + @cp $(srcdir)/stylesheet.css . +endif COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g |