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

Commit320abc3

Browse files
committed
Modify draft SGML instructions to use DRAFT=Y because recursion was
causing html to be called twice --- no way to exit the makefile afterthe recursion returns.
1 parent4355d21 commit320abc3

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

‎doc/src/sgml/Makefile

Lines changed: 3 additions & 17 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.91 2007/01/11 00:02:39 momjian Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.92 2007/01/26 22:23:49 momjian Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -64,7 +64,7 @@ override SPFLAGS += -wall -wno-unused-param -wno-empty
6464
## Man pages
6565
##
6666

67-
.PHONY: man draft
67+
.PHONY:htmlman draft clean
6868

6969
DEFAULTSECTION :=$(sqlmansect_dummy)
7070

@@ -86,35 +86,21 @@ man: postgres.sgml $(ALLSGML)
8686

8787
all: html
8888

89-
.PHONY: html
90-
9189
# This is run for all output formats because we need bookindex.sgml
9290
html: postgres.sgml$(ALLSGML) stylesheet.dsl
9391
@rm -f*.html
9492
$(JADE)$(JADEFLAGS)$(SPFLAGS)$(SGMLINCLUDE)$(CATALOG) -d stylesheet.dsl -i output-html -t sgml$<
9593
ifeq ($(vpath_build), yes)
9694
@cp $(srcdir)/stylesheet.css .
9795
endif
98-
ifndefDRAFT
96+
ifneq ($(DRAFT), Y)
9997
# If not draft, re-run the this rule until HTML.index does not change
10098
@cmp -s HTML.index.start HTML.index || $(MAKE) $@
10199
endif
102100

103101

104102
COLLATEINDEX := LC_ALL=C$(PERL)$(COLLATEINDEX) -f -g
105103

106-
# The draft rule calls gmake again and sets the DRAFT variable.
107-
# This seems to be the only way to set gmake variables in a rule.
108-
draft:
109-
ifndefDRAFT
110-
ifneq ($(MAKECMDGOALS), draft)
111-
@$(MAKE) DRAFT="Y" $(MAKECMDGOALS)
112-
else
113-
# simulate $(MAKE) with no arguments
114-
@$(MAKE) DRAFT="Y" all
115-
endif
116-
endif
117-
118104
# bookindex.sgml is required so there is a proper index for all output formats
119105
bookindex.sgml: HTML.index
120106
# create a dummy bookindex.html

‎doc/src/sgml/docguide.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.65 2007/01/11 00:02:39 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.66 2007/01/26 22:23:50 momjian Exp $ -->
22

33
<appendix id="docguide">
44
<title>Documentation</title>
@@ -546,7 +546,7 @@ checking for sgmlspl... sgmlspl
546546
stages. If you do not care about the index, and just want to
547547
proof-read the output, use <literal>draft</>:
548548
<screen>
549-
<prompt>doc/src/sgml$ </prompt><userinput>gmakedraft html</userinput>
549+
<prompt>doc/src/sgml$ </prompt><userinput>gmakeDRAFT=Y html</userinput>
550550
</screen>
551551
</para>
552552

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp