From 395c3feb3bb165af5760d287a9a64344b6269fe2 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Mon, 10 Dec 2012 14:55:28 +0000 Subject: build: fix 'clean' target This fixes removal of TOOLS as well as HOSTPROGS declared in the top-level Makefile. The clean target in common.mak needs to be eval'd since the variables used within are reset for each library. Signed-off-by: Mans Rullgard --- common.mak | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common.mak') diff --git a/common.mak b/common.mak index c4d299960e..5d80986aab 100644 --- a/common.mak +++ b/common.mak @@ -53,7 +53,13 @@ CLEANSUFFIXES = *.d *.o *~ *.h.c *.map *.ver DISTCLEANSUFFIXES = *.pc LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a +define RULES clean:: $(RM) $(OBJS) $(OBJS:.o=.d) + $(RM) $(HOSTPROGS) + $(RM) $(TOOLS) +endef + +$(eval $(RULES)) -include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d)) -- cgit v1.2.3