Re: Add subdirectory support for DATA/DOCS with PGXS

From: Mark Cave-Ayland <mark(dot)cave-ayland(at)siriusit(dot)co(dot)uk>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Add subdirectory support for DATA/DOCS with PGXS
Date: 2009-12-30 15:10:11
Message-ID: 4B3B6D53.4080907@siriusit.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:

>> The attached patch is a prototype which allows the user to specify a
>> new MODULEDIR variable in a module makefile which, if specified,
>> will install DATA and DOCS items in contrib/$(MODULEDIR) rather than
>> just contrib. If MODULEDIR is left unspecified, the files will
>> simply be stored directly in contrib/ as before.
>
> As a proof of its usefulness, you could remove DATA_TSEARCH and replace
> it with usage of MODULEDIR, right?

Not in its current form because PGXS always places files underneath a
contrib/ subdirectory within datadir. However, if people are happier
with this approach then it shouldn't be too hard to alter things so that
my PGXS Makefile would look like this:

MODULE_big=postgis-1.5
MODULEDIR=contrib/$(MODULE_big)

Once in this form it should then be possible to use this code to replace
the DATA_TSEARCH variable that is currently in place.

ATB,

Mark.

--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-12-30 15:18:11 Re: Add subdirectory support for DATA/DOCS with PGXS
Previous Message Tom Lane 2009-12-30 15:00:41 Re: Stats for inheritance trees