Re: Contrib PROGRAM problem
От | Peter Eisentraut |
---|---|
Тема | Re: Contrib PROGRAM problem |
Дата | |
Msg-id | 1358571588.17277.4.camel@vanquo.pezone.net обсуждение исходный текст |
Ответ на | Re: Contrib PROGRAM problem (Andrew Dunstan <andrew@dunslane.net>) |
Ответы |
Re: Contrib PROGRAM problem
|
Список | pgsql-hackers |
On Fri, 2013-01-18 at 17:37 -0500, Andrew Dunstan wrote: > > ifdef PROGRAM > > $(PROGRAM): $(OBJS) > > - $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) > $(LIBS) -o $@ > > + $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) > $(LIBS) -o $@$(X) > > endif > > > > > Wouldn't it be better to make the rule be for $(PROGRAM)$(X) and > adjust > the dependency for "all" in the same manner? Otherwise make will > rebuild > it whether or not it's needed, won't it? > The above is the way it's done everywhere else in the source tree. I think the reason this works is that either make or the system call that make uses is aware of this naming issue somehow.
В списке pgsql-hackers по дате отправления: