2
I have a make file. Inside this make file, I call this file that has it:
set -f; echo $1 | bc
I want to recover function value in C for that Makefile file. Example:
./a.out "12 + 12"
result: 24
2
I have a make file. Inside this make file, I call this file that has it:
set -f; echo $1 | bc
I want to recover function value in C for that Makefile file. Example:
./a.out "12 + 12"
result: 24
0
I found a similar post in Stackoverflow in English. The idea is to use an auxiliary variable that will contain the arguments:
run:
./executavel $(ARGS)
On the command line:
$> make run ARGS="12 + 12"
Source: https://stackoverflow.com/questions/2214575/passing-arguments-to-make-run
Browser other questions tagged c c++ linux bash shell-script
You are not signed in. Login or sign up in order to post.