using makefile variables in shell script without running make
You could use (a modified version of) the print-%
target from Makefile hacks: print the value of any variable in your makefile to let you query it for values.
print-%: @echo '$(subst ','\'',$($*))'