Re: [PATCHES] Patch to add version numbers to libpq.rc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] Patch to add version numbers to libpq.rc
Date: 2004-12-17 01:20:43
Message-ID: 12943.1103246443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2004-12-17 01:44:52 Re: [PATCHES] Patch to add version numbers to
Previous Message Bruce Momjian 2004-12-17 01:14:42 Re: [PATCHES] Patch to add version numbers to

Browse pgsql-patches by date

  From Date Subject
Next Message Sean Chittenden 2004-12-17 01:43:44 [FIX] Fix for pgxs on darwin and other platforms...
Previous Message Bruce Momjian 2004-12-17 01:14:42 Re: [PATCHES] Patch to add version numbers to