Bruce Momjian <pgman@candle.pha.pa.us> writes:
> + # Force rebuild on re-run of configure
> + $(srcdir)/libpq.rc: $(top_srcdir)/src/Makefile.global libpq.rc.in
> + sed -e 's/\(VERSION.*\),0 *$$/\1,'`date '+%y%j'`'/' < $< > $@
Put Makefile.global second, else $< refers to the wrong file.
Also, it has to be $(top_builddir)/src/Makefile.global, not top_srcdir.
The comment would probably be more useful if a little more verbose:
# depend on Makefile.global to force rebuild on re-run of configure
regards, tom lane