11# ----------------------------------------------------------------------------
22#
3- # Makefile
4- # Postgres documentation makefile
5- # Thomas Lockhart
3+ # PostgreSQL documentation makefile
64#
7- # Copyright (c) 1994, Regents of the University of California
8- #
9- #
10- # IDENTIFICATION
11- # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.55 2003/01/14 23:19:34 petere Exp $
5+ # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.56 2003/03/25 16:15:35 petere Exp $
126#
137# ----------------------------------------------------------------------------
148
2620ifndef JADE
2721JADE = jade
2822endif
29- SGMLINCLUDE = -D$(srcdir ) -D $( srcdir ) /ref
23+ SGMLINCLUDE = -D$(srcdir )
3024
3125ifndef NSGMLS
3226NSGMLS = nsgmls
@@ -39,20 +33,11 @@ endif
3933CONVERT = convert
4034EPSTOPDF = epstopdf
4135
42-
4336# docbook2man generates man pages from docbook refentry source code.
44-
45- ifndef D2MDIR
46- # This is where the (patched) docbook2man perl scripts reside on hub.org.
47- D2MDIR = /home/users/t/thomas/d2x/docbook2man
48- endif
4937D2MSCRIPT =$(D2MDIR ) /docbook2man-spec.pl
5038
51- vpath % .sgml ./ref
52-
53- ALLBOOKS = admin developer programmer reference tutorial user
5439
55- GENERATED_SGML = bookindex.sgmlsetindex.sgml version.sgml\
40+ GENERATED_SGML = bookindex.sgml version.sgml\
5641features-supported.sgml features-unsupported.sgml
5742
5843ALLSGML :=$(wildcard $(srcdir ) /* .sgml$(srcdir ) /ref/* .sgml) $(GENERATED_SGML )
@@ -75,12 +60,10 @@ endif
7560
7661DEFAULTSECTION :=$(sqlmansect_dummy )
7762
78- man :$(ALLSGML )
79- $(NSGMLS ) $(NSGMLS_FLAGS ) $(srcdir ) /book-decl.sgml$(srcdir ) /reference.sgml\
80- | $(SGMLSPL ) $(D2MSCRIPT ) --lowercase --section$(DEFAULTSECTION ) --date" ` date' +%Y-%m-%d' ` "
63+ man : postgres.sgml$(ALLSGML )
64+ $(NSGMLS ) $(NSGMLS_FLAGS ) $< | $(SGMLSPL ) $(D2MSCRIPT ) --lowercase --section$(DEFAULTSECTION ) --date" ` date' +%Y-%m-%d' ` "
8165# One more time, to resolve cross-references
82- $(NSGMLS) $(NSGMLS_FLAGS) $(srcdir)/book-decl.sgml $(srcdir)/reference.sgml \
83- | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
66+ $(NSGMLS) $(NSGMLS_FLAGS) $< | $(SGMLSPL) $(D2MSCRIPT) --lowercase --section $(DEFAULTSECTION) --date "`date '+%Y-%m-%d'`"
8467$(mkinstalldirs) man1 man$(DEFAULTSECTION)
8568mv *.1 man1/
8669mv *.$(DEFAULTSECTION) man$(DEFAULTSECTION)/
@@ -90,36 +73,23 @@ man: $(ALLSGML)
9073# # HTML
9174# #
9275
93- JADE.html = $( JADE ) $( JADEFLAGS ) $( SGMLINCLUDE ) $( CATALOG ) -d stylesheet.dsl -i output- html -t sgml
76+ all : html
9477
95- postgres.html : postgres.sgml$(ALLSGML ) stylesheet.dsl
96- @rm -f* .html
97- $(JADE.html ) $<
98- ln -sf index.html$@
78+ .PHONY : html
9979
100- $( addsuffix . html, $( ALLBOOKS ) ) : % .html: % . sgml$(ALLSGML ) stylesheet.dsl
80+ html : postgres. sgml$(ALLSGML ) stylesheet.dsl catalogs.gif connections.gif
10181@rm -f* .html
102- $(JADE.html ) book-decl.sgml$<
103- ln -sf index.html$@
82+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -i output-html -t sgml$<
10483
105- programmer.html : catalogs.gif connections.gif
106- postgres.html : catalogs.gif connections.gif
10784
108-
109- COLLATEINDEX :=$(PERL ) $(COLLATEINDEX ) -f -g -t 'Index'
85+ COLLATEINDEX :=$(PERL ) $(COLLATEINDEX ) -f -g
11086
11187ifeq (,$(wildcard HTML.index) )
11288bookindex.sgml :
11389$(COLLATEINDEX ) -o$@ -N
114-
115- setindex.sgml :
116- $(COLLATEINDEX ) -x -o$@ -N
11790else
11891bookindex.sgml : HTML.index
11992$(COLLATEINDEX ) -i' bookindex' -o$@ $<
120-
121- setindex.sgml : HTML.index
122- $(COLLATEINDEX ) -i' setindex' -x -o$@ $<
12393endif
12494
12595version.sgml :$(top_builddir ) /src/Makefile.global
@@ -140,22 +110,25 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
140110# #
141111
142112# RTF to allow minor editing for hardcopy
143- $(addsuffix .rtf,$(ALLBOOKS ) ) :% .rtf:% .sgml$(ALLSGML ) stylesheet.dsl
144- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print book-decl.sgml$<
113+
114+ % .rtf :% .sgml$(ALLSGML ) stylesheet.dsl
115+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print$<
116+
117+ postgres.rtf : catalogs.gif connections.gif
145118
146119# TeX
147120# Regular TeX and pdfTeX have slightly differing requirements, so we
148121# need to distinguish the path we're taking.
149122
150- $( addsuffix .tex-ps, $( ALLBOOKS ) ) : % .tex-ps:% .sgml$(ALLSGML ) stylesheet.dsl
151- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o$@ book-decl.sgml $<
123+ % .tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl
124+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o$@ $<
152125
153- programmer .tex-ps : catalogs.eps connections.eps
126+ postgres .tex-ps : catalogs.eps connections.eps
154127
155- $( addsuffix .tex-pdf, $( ALLBOOKS ) ) : % .tex-pdf:% .sgml$(ALLSGML ) stylesheet.dsl
156- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o$@ book-decl.sgml $<
128+ % .tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl
129+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o$@ $<
157130
158- programmer .tex-pdf : catalogs.pdf connections.pdf
131+ postgres .tex-pdf : catalogs.pdf connections.pdf
159132
160133% .dvi :% .tex-ps
161134@rm -f$* .aux$* .log
@@ -177,8 +150,8 @@ programmer.tex-pdf: catalogs.pdf connections.pdf
177150# This generates an XML version of the flow-object tree. It's useful
178151# for debugging DSSSL code, and possibly to interface to some other
179152# tools that can make use of this.
180- $( addsuffix .fot, $( ALLBOOKS ) ) : % .fot:% .sgml$(ALLSGML ) stylesheet.dsl
181- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t fot -i output-print -o$@ book-decl.sgml $<
153+ % .fot :% .sgml$(ALLSGML ) stylesheet.dsl
154+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t fot -i output-print -o$@ $<
182155
183156
184157# Graphics
@@ -224,13 +197,8 @@ regress_README.html: regress.sgml
224197# # Check
225198# #
226199
227- check :$(addprefix check-,$(ALLBOOKS ) ) check-postgres
228-
229200# Quick syntax check without style processing
230- $(addprefix check-,$(ALLBOOKS ) ) : check-% :% .sgml$(ALLSGML )
231- $(NSGMLS ) $(SGMLINCLUDE ) -s book-decl.sgml$<
232-
233- check-postgres : postgres.sgml$(ALLSGML )
201+ check : postgres.sgml$(ALLSGML )
234202$(NSGMLS ) $(SGMLINCLUDE ) -s$<
235203
236204