On 18/12/09 06:24, Bart Robinson wrote:
> 2009/12/17 Maxim Yegorushkin<[email protected]>:
>> $(ARCHIVES_R) : $(STATIC_LIBS)
>>         @echo "updated $@"
>>
>> Although this won't solve the problem since now make considers that $(ARCHIVES_R) >> is always gets rebuild, triggering relinking $(OBJDIR_R)/$(EXEFILE) all the time.
>
> Don't sell yourself short, I think your suggestion of adding empty
> commands is correct :-)

You are quite right. I tried the example and adding an empty command made it work.

> Since there are commands, make will reconsider the timestamp of
> $(ARCHIVES_R), but they will not force it to be considered out of
> date, so there shouldn't be any spurious relinking.

I was not sure if make reconsiders the timestamp of the target whose commands have just executed.

--
Max



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to