help-make
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Executing Perl pattern substitution inside a Makefile
From
:
Frazer Worley
Subject
:
Executing Perl pattern substitution inside a Makefile
Date
:
Mon, 17 Dec 2007 18:00:02 -0500
I want to issue the following Perl one liner inside a Makefile:
perl -ple 's/\$\{(\w+)\}/$ENV{$1}/g'
which would turn this:
/pkg/qct/verif/qvm/lib/8.0.0/${VERA_VERSION}/novip/qmicro_xact_mon.vro
into this
/pkg/qct/verif/qvm/lib/8.0.0/6.4.4/novip/qmicro_xact_mon.vro
eg.
some_target:${VERA_LIBRARY_DEPS}
${CAT} ${VERA_LIBRARY_DEPS} | perl -ple 's/\$\{(\w+)\}/$ENV{$1}/g' > $@
The _expression_ is not evaluated correctly ... I've tried any number of alternatives
with no luck. If someone can suggest something which would work I'd be much
obliged.
Thanks,
-Frazer
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Executing Perl pattern substitution inside a Makefile
,
Frazer Worley
<=
Re: Executing Perl pattern substitution inside a Makefile
,
Paul Smith
,
2007/12/18
Re: Executing Perl pattern substitution inside a Makefile
,
Frazer Worley
,
2007/12/18
Prev by Date:
Re: removing a word matching a string?
Next by Date:
Re: Executing Perl pattern substitution inside a Makefile
Previous by thread:
removing a word matching a string?
Next by thread:
Re: Executing Perl pattern substitution inside a Makefile
Index(es):
Date
Thread