using secondexpansion to expand the variable correctly
simplified makefiles