Re: [pgsql-hackers-win32] Patch to add version numbers to libpq.rc - Mailing list pgsql-patches

From Tom Lane
Subject Re: [pgsql-hackers-win32] Patch to add version numbers to libpq.rc
Date
Msg-id 12943.1103246443@sss.pgh.pa.us
Whole thread Raw
In response to Re: [pgsql-hackers-win32] Patch to add version numbers to  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [pgsql-hackers-win32] Patch to add version numbers to  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Patch to add version numbers to
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Patch to add version numbers to