Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2816b2c

Browse files
committed
Clean up the doc makefile for draft HTML generation. It no longer works
to do "make DRAFT=Y html"; you need to use "make draft" (which was alsosupported previously).
1 parent4718358 commit2816b2c

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

‎doc/src/sgml/Makefile

Lines changed: 10 additions & 18 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.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 $
66
#
77
#----------------------------------------------------------------------------
88

@@ -53,11 +53,6 @@ ifdef DOCBOOKSTYLE
5353
CATALOG = -c$(DOCBOOKSTYLE)/catalog
5454
endif
5555

56-
# Enable draft mode during development
57-
ifeq ($(DRAFT), Y)
58-
overrideJADEFLAGS += -V draft-mode
59-
endif
60-
6156
# Enable some extra warnings
6257
# -wfully-tagged needed to throw a warning on missing tags
6358
# for older tool chains, 2007-08-31
@@ -89,24 +84,21 @@ man: postgres.sgml $(ALLSGML)
8984

9085
all: html
9186

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+
9295
# 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
9497
@rm -f*.html
9598
$(JADE)$(JADEFLAGS)$(SPFLAGS)$(SGMLINCLUDE)$(CATALOG) -d stylesheet.dsl -i output-html -t sgml$<
9699
ifeq ($(vpath_build), yes)
97100
@cp $(srcdir)/stylesheet.css .
98101
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-
110102

111103
COLLATEINDEX := LC_ALL=C$(PERL)$(COLLATEINDEX) -f -g
112104

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp