Re: Add subdirectory support for DATA/DOCS with PGXS - Mailing list pgsql-hackers

From Mark Cave-Ayland
Subject Re: Add subdirectory support for DATA/DOCS with PGXS
Date
Msg-id 4B3B6D53.4080907@siriusit.co.uk
Whole thread Raw
In response to Re: Add subdirectory support for DATA/DOCS with PGXS  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Add subdirectory support for DATA/DOCS with PGXS  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Stats for inheritance trees
Next
From: Tom Lane
Date:
Subject: Re: Add subdirectory support for DATA/DOCS with PGXS