PHONY: all all: @echo In 'SubMakefile:' LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) and TEST_PATH=$(TEST_PATH)