|
2 | 2 | #
|
3 | 3 | # PostgreSQL documentation makefile
|
4 | 4 | #
|
5 |
| -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.100 2007/10/07 00:23:21 alvherre Exp $ |
| 5 | +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.101 2007/10/07 00:32:11 alvherre Exp $ |
6 | 6 | #
|
7 | 7 | #----------------------------------------------------------------------------
|
8 | 8 |
|
@@ -53,11 +53,6 @@ ifdef DOCBOOKSTYLE
|
53 | 53 | CATALOG = -c $(DOCBOOKSTYLE)/catalog
|
54 | 54 | endif
|
55 | 55 |
|
56 |
| -# Enable draft mode during development |
57 |
| -ifeq ($(DRAFT), Y) |
58 |
| -override JADEFLAGS += -V draft-mode |
59 |
| -endif |
60 |
| - |
61 | 56 | # Enable some extra warnings
|
62 | 57 | # -wfully-tagged needed to throw a warning on missing tags
|
63 | 58 | # for older tool chains, 2007-08-31
|
@@ -89,24 +84,21 @@ man: postgres.sgml $(ALLSGML)
|
89 | 84 |
|
90 | 85 | all: html
|
91 | 86 |
|
| 87 | +# The draft target creates HTML output in draft mode |
| 88 | +draft : JADEFLAGS += -V draft-mode |
| 89 | +draft: html-output |
| 90 | + |
| 91 | +html: html-output |
| 92 | +# Re-run this target until HTML.index does not change |
| 93 | + @cmp -s HTML.index.start HTML.index || $(MAKE) $@ |
| 94 | + |
92 | 95 | # This is run for all output formats because we need bookindex.sgml
|
93 |
| -html: postgres.sgml $(ALLSGML) stylesheet.dsl |
| 96 | +html-output: postgres.sgml $(ALLSGML) stylesheet.dsl |
94 | 97 | @rm -f *.html
|
95 | 98 | $(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml $<
|
96 | 99 | ifeq ($(vpath_build), yes)
|
97 | 100 | @cp $(srcdir)/stylesheet.css .
|
98 | 101 | endif
|
99 |
| -ifneq ($(DRAFT), Y) |
100 |
| -# If not draft, re-run the this rule until HTML.index does not change |
101 |
| - @cmp -s HTML.index.start HTML.index || $(MAKE) $@ |
102 |
| -endif |
103 |
| - |
104 |
| - |
105 |
| -# The draft rule calls gmake again and sets the DRAFT variable. |
106 |
| -# This seems to be the only way to set gmake variables in a rule. |
107 |
| -draft: |
108 |
| - @$(MAKE) DRAFT="Y" html |
109 |
| - |
110 | 102 |
|
111 | 103 | COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g
|
112 | 104 |
|
|
0 commit comments