remove the redundant codes in Makefile