Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlvaro Herrera2007-10-07 00:32:11 +0000
committerAlvaro Herrera2007-10-07 00:32:11 +0000
commit2816b2cdd2c3820a12b6d05a11c4be624e35536f (patch)
tree174049a49587fdad4894d3f6b80a73d6d205c50e /doc/src
parent4718358fe7a5badc6ffd6fd2e0688c6cb07c13bd (diff)
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 also supported previously).
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/Makefile28
1 files changed, 10 insertions, 18 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index b2a897d34a9..5b5c96a1a12 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -2,7 +2,7 @@
#
# PostgreSQL documentation makefile
#
-# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.100 2007/10/07 00:23:21 alvherre Exp $
+# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.101 2007/10/07 00:32:11 alvherre Exp $
#
#----------------------------------------------------------------------------
@@ -53,11 +53,6 @@ ifdef DOCBOOKSTYLE
CATALOG = -c $(DOCBOOKSTYLE)/catalog
endif
-# Enable draft mode during development
-ifeq ($(DRAFT), Y)
-override JADEFLAGS += -V draft-mode
-endif
-
# Enable some extra warnings
# -wfully-tagged needed to throw a warning on missing tags
# for older tool chains, 2007-08-31
@@ -89,24 +84,21 @@ man: postgres.sgml $(ALLSGML)
all: html
+# The draft target creates HTML output in draft mode
+draft : JADEFLAGS += -V draft-mode
+draft: html-output
+
+html: html-output
+# Re-run this target until HTML.index does not change
+ @cmp -s HTML.index.start HTML.index || $(MAKE) $@
+
# This is run for all output formats because we need bookindex.sgml
-html: postgres.sgml $(ALLSGML) stylesheet.dsl
+html-output: postgres.sgml $(ALLSGML) stylesheet.dsl
@rm -f *.html
$(JADE) $(JADEFLAGS) $(SPFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-html -t sgml $<
ifeq ($(vpath_build), yes)
@cp $(srcdir)/stylesheet.css .
endif
-ifneq ($(DRAFT), Y)
-# If not draft, re-run the this rule until HTML.index does not change
- @cmp -s HTML.index.start HTML.index || $(MAKE) $@
-endif
-
-
-# The draft rule calls gmake again and sets the DRAFT variable.
-# This seems to be the only way to set gmake variables in a rule.
-draft:
- @$(MAKE) DRAFT="Y" html
-
COLLATEINDEX := LC_ALL=C $(PERL) $(COLLATEINDEX) -f -g