2
2
#
3
3
# PostgreSQL documentation makefile
4
4
#
5
- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.85 2006/12/15 01:20:59 momjian Exp $
5
+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.86 2006/12/15 16:50:07 momjian Exp $
6
6
#
7
7
# ----------------------------------------------------------------------------
8
8
99
99
100
100
COLLATEINDEX := LC_ALL=C $(PERL ) $(COLLATEINDEX ) -f -g
101
101
102
+ # If HTML.index does not exist, create a dummy bookindex.sgml. During the
103
+ # next build, create bookindex.sgml with the proper index contents. A proper
104
+ # bookindex.sgml is required to have an index in the output.
102
105
ifeq (,$(wildcard HTML.index) )
103
106
bookindex.sgml :
104
107
$(COLLATEINDEX ) -o $@ -N
@@ -136,29 +139,21 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
136
139
137
140
JADE.tex.call = $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d $(srcdir ) /stylesheet.dsl -t tex -V tex-backend -i output-print
138
141
139
- % -A4.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl
140
- # multiple runs are necessary to create proper index entries
141
- $(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =A4 -o $@ $<
142
+ % -A4.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl bookindex.sgml
142
143
$(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =A4 -o $@ $<
143
144
144
- % -US.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl
145
- # multiple runs are necessary to create proper index entries
146
- $(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =USletter -o $@ $<
145
+ % -US.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl bookindex.sgml
147
146
$(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =USletter -o $@ $<
148
147
149
- % -A4.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl
150
- # multiple runs are necessary to create proper index entries
151
- $(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =A4 -o $@ $<
148
+ % -A4.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl bookindex.sgml
152
149
$(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =A4 -o $@ $<
153
150
154
- % -US.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl
155
- # multiple runs are necessary to create proper index entries
156
- $(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =USletter -o $@ $<
151
+ % -US.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl bookindex.sgml
157
152
$(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =USletter -o $@ $<
158
153
159
154
% .dvi : % .tex-ps
160
155
@rm -f $* .aux $* .log
161
- # multiple runs are necessary to create proper index entries
156
+ # multiple runs are necessary to create proper intra-document links
162
157
jadetex $<
163
158
jadetex $<
164
159
jadetex $<
@@ -169,7 +164,7 @@ JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/styl
169
164
170
165
% .pdf : % .tex-pdf
171
166
@rm -f $* .aux $* .log $* .out
172
- # multiple runs are necessary to create proper index entries
167
+ # multiple runs are necessary to create proper intra-document links
173
168
pdfjadetex $<
174
169
pdfjadetex $<
175
170
pdfjadetex $<
0 commit comments