From 25fc5ffd924b40fdcf6d34e43b10d010df2c21ea Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 27 Apr 2010 09:19:47 +0000 Subject: Force mkdir before resolving any make rules. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dfa1d8ed0f..05b41d123f 100644 --- 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 -- cgit v1.2.3