Re: new target for contrib/Makefile

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: new target for contrib/Makefile
Дата
Msg-id 200409292355.32961.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: new target for contrib/Makefile  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: new target for contrib/Makefile
Re: new target for contrib/Makefile
Список 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/


В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: new target for contrib/Makefile
Следующее
От: Tom Lane
Дата:
Сообщение: Re: new target for contrib/Makefile