Any way to do this on a Makefile? -
i have list of strings such x y z
, want transform a/liba.lib b/libb.a c/libc.a
any ideas? ($(input:%=%/lib%.a)
yields a/lib%.lib b/lib%.a c/lib%.a
, don't bother trying one).
input := x y z output := $(foreach x,${input},${x}/lib${x}.lib) $(info input=${input}) $(info output=${output})
outputs:
input=x y z output=x/libx.lib y/liby.lib z/libz.lib
Comments
Post a Comment