On 2011-01-24 12:38Z, Klaus Rudolph wrote: > > I want to set a variable from a part of a target specification. > > %.x: CXXFLAGS+= %
Use '$*' instead of '%' on the right-hand side.
$cat pct.make
%.x: CXXFLAGS+= $*
%.x:
@echo $(CXXFLAGS)
$make -f pct.make abc.x
abc
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
