Force mkdir before resolving any make rules.
authorPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 27 Apr 2010 09:19:47 +0000 (09:19 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 27 Apr 2010 09:19:47 +0000 (09:19 +0000)
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile

index dfa1d8ed0f2135c5d272e1e9d5ce44eddb085576..05b41d123f863e377cc7319019a9782c8121853f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -304,12 +304,11 @@ CBFS_PAYLOAD_COMPRESS_FLAG:=l
 CBFS_PAYLOAD_COMPRESS_NAME:=LZMA
 endif
 
-coreboot: prepare $(obj)/coreboot.rom
+coreboot: $(obj)/coreboot.rom
 
 endif
 
-prepare:
-       mkdir -p $(obj) $(objutil)/kconfig/lxdialog $(objutil)/cbfstool $(objutil)/romcc $(objutil)/options $(alldirs)
+$(shell mkdir -p $(obj) $(objutil)/kconfig/lxdialog $(objutil)/cbfstool $(objutil)/romcc $(objutil)/options $(alldirs))
 
 $(obj)/build.h: .xcompile
        @printf "    GEN        build.h\n"
@@ -383,5 +382,5 @@ $(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c
        @# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html
        $(HOSTCC) -g $(STACK) -Wall -o $@ $<
 
-.PHONY: $(PHONY) prepare clean distclean doxygen doxy coreboot .xcompile
+.PHONY: $(PHONY) clean distclean doxygen doxy coreboot .xcompile