SubDir ROOT ; Echo "Root is $(ROOT)" ; TEST_RELATIVE_TO = ROOT ; TestTokens $(UNDEFINED) ; # NOTE: Because SubInclude sets (through SubDir) variables # for it's own future reference, changing the order of the # SubIncludes may change the results of the test! Echo "------------------------------" ; Echo "SubIncluding test/foo from top: " ; SubInclude ROOT test foo ; Echo "------------------------------" ; Echo "SubIncluding test from top:" ; SubInclude ROOT test ;