I know that perl one liner below is very simple, works and makes a global replacement, A for a; but how do I run it in a makefile?
perl -pi -e "s/a/A/g" filename
I tried (now I think the rest of the message is undesirable since the shell command does a command line extension - NOT WHAT I WANT!) The question above still stands!
APP = $(shell perl -pi -e "s/a/A/g" filename)
with and without the next line
EXE = $(APP)
and I always get the following error:
make: APP: Command not found
which I assume comes from the line that launches APP
thanks
Frank source
share