I have a make file. Inside this make file, I call this file that has this:
set -f; echo $1 | bc
I want to retrieve the value of the function in C for this makefile. Example:
./a.out "12 + 12"
result: 24
I have a make file. Inside this make file, I call this file that has this:
set -f; echo $1 | bc
I want to retrieve the value of the function in C for this makefile. Example:
./a.out "12 + 12"
result: 24
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)
At the command line:
$> make run ARGS="12 + 12"
Source: link