From 58edecdc1e0c7e811c02eb2f3f9c30fa23d4890d Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 25 Nov 2008 16:41:21 +0000 Subject: libpayload: Fix immediate rebuild after a clean After running make clean, most of build/ directory gets deleted. It is (re)created in the "prepare" make target, but that was libpayload.a dependency after the $OBJS, while OBJS building already needs to dump its created object files there. Simply rearrange the make target dependencies to get at least "make clean;make" working. Signed-off-by: Mart Raudsepp Acked-by: Jordan Crouse git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3771 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads') diff --git a/payloads/libpayload/Makefile b/payloads/libpayload/Makefile index f2536e9b95..32c39575e7 100644 --- a/payloads/libpayload/Makefile +++ b/payloads/libpayload/Makefile @@ -111,7 +111,7 @@ copystuff: $(obj)/$(ARCHDIR-y)/head.S.o $(obj)/lib/libpayload.a $(Q)cp $(obj)/$(ARCHDIR-y)/head.S.o $(src)/lib/$(ARCHDIR-y)/head.o $(Q)cp $(obj)/lib/libpayload.a $(src)/lib -$(obj)/lib/libpayload.a: $(OBJS) prepare +$(obj)/lib/libpayload.a: prepare $(OBJS) $(Q)printf " AR $(subst $(shell pwd)/,,$(@))\n" $(Q)$(AR) rc $@ $(OBJS) -- cgit v1.2.3