add clean to Makefile

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1012 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2003-07-23 18:52:17 +00:00
parent 6430c011f4
commit 6ba9ff837b
1 changed files with 7 additions and 0 deletions

View File

@ -1598,6 +1598,13 @@ def writemakefile(path):
file.write("\tif (cd %s; \\\n" % o.getname())
file.write("\t\tmake linuxbios.rom)\\\n");
file.write("\tthen true; else exit 1; fi;\n\n")
file.write("clean: ")
for i in romimages.keys():
file.write("%s-clean " % i)
file.write("\n\n")
for i, o in romimages.items():
file.write("%s-clean:\n" % o.getname())
file.write("\t(cd %s; make clean)\n" % o.getname())
file.close()
def writeinitincludes(image):