Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 42610b1

Browse files
committed
Fix for vpath build
1 parent 3a61381 commit 42610b1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/src/sgml/Makefile

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
2222
endif
2323
SGMLINCLUDE = -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+
2532
ifndef NSGMLS
2633
NSGMLS = nsgmls
2734
endif
@@ -80,6 +87,9 @@ all: html
8087
html: 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

8595
COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g

0 commit comments

Comments
 (0)