On Mon, Jan 6, 2014 at 6:47 PM, Andreas Schwab <sch...@linux-m68k.org> wrote: > Patrick Palka <patr...@parcs.ath.cx> writes: > >> From what I inferred from the make manual[0], $* is functionally >> equivalent to $(basename $@) in this case. > > Or $(base), I think. > > Andreas. > > -- > Andreas Schwab, sch...@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different."
I tried using $(base) but I wound up with a different build error. When compiling morestack.S, $(base) gets expanded into "unwind-sjlj" instead of "morestack". I believe this is because Makefile variables inside rule bodies are late-bound/expanded.