Doing another 'make' after a 'make clean' was broken until now. Fix it
[coreboot.git] / payloads / coreinfo / Makefile
index a05edbc051a459bdbd5986686215a6e16594e036..e3d4b6ed1b4f3812942e39a800e9ca9d7766e6e6 100644 (file)
@@ -59,8 +59,7 @@ TARGET  = $(obj)/coreinfo.elf
 
 ifeq ($(strip $(HAVE_DOTCONFIG)),)
 
-all:
-       $(Q)printf "Please run make config/menuconfig/xconfig/gconfig first.\n"
+all: config
 
 else
 
@@ -91,9 +90,10 @@ prepare:
        $(Q)mkdir -p $(obj)/util/kconfig/lxdialog
 
 clean:
-       $(Q)rm -rf build
+       $(Q)rm -rf build/util build/*.conf build/*.cmd build/*.elf build/*.o
 
 distclean: clean
+       $(Q)rm -rf build
        $(Q)rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
 
 include util/kconfig/Makefile