bug fixing in makefiles