Correct the bug related to the duplicate inclusion in makefile generation