You have to escape any $
you don't want to be expanded by make, as $$
.
Also, why are you running $(shell ...)
twice?
This will work:
LIST_NEW = $(shell echo ${LIST} | perl -pe 's/(d+)-(d+)/join(",", $$1..$$2)/ge')
You might consider using :=
instead, here, if the value of LIST
is constant for a given invocation of make.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…