22#
33# PostgreSQL documentation makefile
44#
5- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.88 2007/01/09 22:19:36 momjian Exp $
5+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.89 2007/01/10 01:57:15 momjian Exp $
66#
77# ----------------------------------------------------------------------------
88
@@ -96,7 +96,7 @@ ifeq ($(vpath_build), yes)
9696@cp $(srcdir)/stylesheet.css .
9797endif
9898ifndef DRAFT
99- @cmp -s HTML.index.start HTML.index || $(MAKE) $*
99+ @cmp -s HTML.index.start HTML.index || $(MAKE) $(MAKECMDGOALS)
100100endif
101101
102102
@@ -107,7 +107,7 @@ ifndef DRAFT
107107ifneq ($(MAKECMDGOALS ) , draft)
108108# Call ourselves with the DRAFT value set. This seems to be the only
109109# way to set gmake variables in a rule.
110- @$(MAKE) DRAFT="Y" $(MAKECMDGOALS))
110+ @$(MAKE) DRAFT="Y" $(MAKECMDGOALS)
111111else
112112# run default 'all' rule
113113@$(MAKE) DRAFT="Y" all
@@ -159,25 +159,25 @@ JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/styl
159159% -A4.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
160160$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =A4 -o$@ $<
161161ifndef DRAFT
162- @cmp -s HTML.index.start HTML.index || $(MAKE) $*
162+ @cmp -s HTML.index.start HTML.index || $(MAKE) $@
163163endif
164164
165165% -US.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
166166$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =USletter -o$@ $<
167167ifndef DRAFT
168- @cmp -s HTML.index.start HTML.index || $(MAKE) $*
168+ @cmp -s HTML.index.start HTML.index || $(MAKE) $@
169169endif
170170
171171% -A4.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
172172$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =A4 -o$@ $<
173173ifndef DRAFT
174- @cmp -s HTML.index.start HTML.index || $(MAKE) $*
174+ @cmp -s HTML.index.start HTML.index || $(MAKE) $@
175175endif
176176
177177% -US.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
178178$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =USletter -o$@ $<
179179ifndef DRAFT
180- @cmp -s HTML.index.start HTML.index || $(MAKE) $*
180+ @cmp -s HTML.index.start HTML.index || $(MAKE) $@
181181endif
182182
183183% .dvi :% .tex-ps