Bruce Momjian wrote: > I wrote: > > ifeq (,$(wildcard bookindex.valid)) > echo "Run 'gmake' again to generate output with a proper index" > endif > > but that warns on the first _two_ runs, meaning it expanded at the > time the rule started, not at the time it hit that line.
This expands at the time the makefile is read. You may get it to work with target: $(if $(wildcard blah), this, that) The following may be helpful: http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html#Reading-Makefiles -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings