[coreboot] New patch to review for filo: ba947af makefile: create directories on demand

Mathias Krause (mathias.krause@secunet.com) gerrit at coreboot.org
Tue Mar 6 16:42:27 CET 2012

Mathias Krause (mathias.krause at secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/742


commit ba947af8efc8d7d5b403150ed16a8c61cdd9750d
Author: Mathias Krause <mathias.krause at secunet.com>
Date:   Tue Mar 6 09:31:38 2012 +0100

    makefile: create directories on demand
    Use makefile dependencies to created needed directories instead of
    trying to recreate them on each make invocation.
    Change-Id: Ia06b1042f2a2c4905f5c8277a48ec4b8188f3079
    Signed-off-by: Mathias Krause <mathias.krause at secunet.com>
 Makefile |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 41486a9..6603612 100644
--- a/Makefile
+++ b/Makefile
@@ -161,16 +161,16 @@ $(obj)/version.h: FORCE
 	echo '#define BUILD_INFO "$(BUILD_INFO)"' >> $@
-	mkdir -p $(obj)/util/kconfig/lxdialog
-	mkdir -p $(obj)/i386 $(obj)/fs $(obj)/drivers/flash
-	mkdir -p $(obj)/main/grub
+	mkdir -p $@
+prepare: $(sort $(dir $(OBJS))) $(obj)/util/kconfig/lxdialog/
-	rm -rf $(obj)/i386 $(obj)/fs $(obj)/drivers $(obj)/main $(obj)/util
+	rm -rf $(sort $(dir $(OBJS))) $(obj)/util
 distclean: clean
-	rm -rf build
+	rm -rf $(obj)
 	rm -f .config lib.config .config.old .xcompile ..config.tmp .kconfig.d .tmpconfig*

More information about the coreboot mailing list