|
2 | 2 | #
|
3 | 3 | # PostgreSQL documentation makefile
|
4 | 4 | #
|
5 |
| -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.90 2007/01/10 19:06:04 momjian Exp $ |
| 5 | +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.91 2007/01/11 00:02:39 momjian Exp $ |
6 | 6 | #
|
7 | 7 | #----------------------------------------------------------------------------
|
8 | 8 |
|
9 | 9 | subdir = doc/src/sgml
|
10 | 10 | top_builddir = ../../..
|
11 | 11 | include $(top_builddir)/src/Makefile.global
|
12 | 12 |
|
13 |
| -.SECONDARY: |
14 | 13 | .NOTPARALLEL:
|
15 | 14 |
|
16 | 15 | ifndef COLLATEINDEX
|
@@ -97,13 +96,14 @@ ifeq ($(vpath_build), yes)
|
97 | 96 | @cp $(srcdir)/stylesheet.css .
|
98 | 97 | endif
|
99 | 98 | ifndef DRAFT
|
| 99 | +# If not draft, re-run the this rule until HTML.index does not change |
100 | 100 | @cmp -s HTML.index.start HTML.index || $(MAKE) $@
|
101 | 101 | endif
|
102 | 102 |
|
103 | 103 |
|
104 | 104 | COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
|
105 | 105 |
|
106 |
| -# The draft rule calls $(MAKE) again and sets the DRAFT variable. |
| 106 | +# The draft rule calls gmake again and sets the DRAFT variable. |
107 | 107 | # This seems to be the only way to set gmake variables in a rule.
|
108 | 108 | draft:
|
109 | 109 | ifndef DRAFT
|
@@ -148,9 +148,8 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
|
148 | 148 |
|
149 | 149 |
|
150 | 150 | # RTF to allow minor editing for hardcopy
|
151 |
| - |
152 |
| -%.rtf: %.sgml $(ALLSGML) stylesheet.dsl |
153 |
| - $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print $< |
| 151 | +%.rtf: %.sgml $(ALLSGML) html |
| 152 | + $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print postgres.sgml |
154 | 153 |
|
155 | 154 | # TeX
|
156 | 155 | # Regular TeX and pdfTeX have slightly differing requirements, so we
|
@@ -192,7 +191,7 @@ JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/styl
|
192 | 191 | # This generates an XML version of the flow-object tree. It's useful
|
193 | 192 | # for debugging DSSSL code, and possibly to interface to some other
|
194 | 193 | # tools that can make use of this.
|
195 |
| -%.fot: %.sgml $(ALLSGML) stylesheet.dsl |
| 194 | +%.fot: %.sgml $(ALLSGML) html |
196 | 195 | $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -t fot -i output-print -o $@ $<
|
197 | 196 |
|
198 | 197 |
|
|
0 commit comments