Re: new target for contrib/Makefile

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: new target for contrib/Makefile
Date: 2004-09-29 23:11:21
Message-ID: 415B4119.2080004@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut wrote:

>Tom Lane wrote:
>
>
>>I found the following closely-related suggestion in the Make manual.
>>It's not quite there because it doesn't seem to provide a way to pass
>>down the current action (all/clean/install/etc) to the sub-Make.
>>Any ideas how we could do that?
>>
>>
>
>I've seen the following idea somewhere:
>
>SUBDIRS = ...
>
>.PHONY: $(addsuffix -foo, $(SUBDIRS)):
>
>$(addsuffix -foo, $(SUBDIRS)):
> $(MAKE) -C `echo $@ | sed 's/-.*$//'` `echo $@ | sed 's/^.*-//'`
>
>

Cute. And wonderfully cryptic. I'm sure I've lost brain cells already
just trying to understand it ;-)

cheers

andrew

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message ljb 2004-09-30 00:30:21 8.0.0beta3 release documentation fixes for Tcl unbundling
Previous Message David Fetter 2004-09-29 22:20:35 Clarification of the PL/Perl documents