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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to