bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compacting link-rules


From: Paul Smith
Subject: Re: Compacting link-rules
Date: Fri, 19 Oct 2018 09:49:51 -0400

On Fri, 2018-10-19 at 09:39 +0000, Edward Welbourne wrote:
> TARGETS = bin/animation.exe bin/barchart.exe ...
> 
> $(TARGETS): bin/%.exe: $(%_OBJ) $(LIBS)
>       $(call link_EXE, $@, $^)

If you try this, you'll see it doesn't work.

Variables are expanded before the pattern is substituted, so $(%_OBJ)
tries to expand the variable %_OBJ which is empty.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]