Re: new target for contrib/Makefile

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

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/^.*-//'`

Repeat for all "foo" targets that you need. The sed expressions may
need refining.

Then again, the original proposal doesn't sound so bad either.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-09-29 22:04:56 Re: new target for contrib/Makefile
Previous Message Tom Lane 2004-09-29 20:28:52 Re: new target for contrib/Makefile