I'm calling make
from a bash script. Part of the rest of the script only needs to be executed if make
actually did something (i.e. it doesn't say nothing to be done for...
).
How would I check on that in bash? The return code is the same as when something does happen (and doesn't fail), so I can't use that. Is there a better way than comparing make
's output and see if it contains nothing to be done for
?
I'm using GNU Make 4.0.
echo $?
after the make that ends withnothing to be done for?
echo $?
. Bothnothing to be done for
and an actual make are successful, so they return 0.