Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab1725d

Browse files
committed
Revert makefile refactoring (version 1.123) because it doesn't work
when building several files at once (e.g., gmake postgres-A4.pdf postgres-US.pdf).
1 parent 50a4054 commit ab1725d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

doc/src/sgml/Makefile

Lines changed: 11 additions & 7 deletions
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.133 2009/10/06 20:00:44 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.134 2009/12/30 13:48:52 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -143,13 +143,17 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
143143

144144
JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/stylesheet.dsl -t tex -V tex-backend -i output-print -i include-index
145145

146-
%-A4.tex-ps %-US.tex-ps : JADE_OUTPUT=texdvi-output
147-
%-A4.tex-pdf %-US.tex-pdf : JADE_OUTPUT=texpdf-output
148-
%-A4.tex-ps %-A4.tex-pdf : JADE_PAPER=A4
149-
%-US.tex-ps %-US.tex-pdf : JADE_PAPER=USletter
146+
%-A4.tex-ps: %.sgml $(ALLSGML)
147+
$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $<
150148

151-
%-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf: %.sgml $(ALLSGML)
152-
$(JADE.tex.call) -V $(JADE_OUTPUT) -V '%paper-type%'=$(JADE_PAPER) -o $@ $<
149+
%-US.tex-ps: %.sgml $(ALLSGML)
150+
$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $<
151+
152+
%-A4.tex-pdf: %.sgml $(ALLSGML)
153+
$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $<
154+
155+
%-US.tex-pdf: %.sgml $(ALLSGML)
156+
$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $<
153157

154158
%.dvi: %.tex-ps
155159
@rm -f $*.aux $*.log

0 commit comments

Comments
 (0)