Makefile.main: remove makefile if generator script failed.