From dc6632f1195c929a87ddf1b02d12b681c6de79ad Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Fri, 3 Jun 2011 15:50:14 +0100 Subject: [PATCH] build: simplify commands for clean target Signed-off-by: Mans Rullgard --- subdir.mak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subdir.mak b/subdir.mak index 7fdeddcceb..1d5824b022 100644 --- a/subdir.mak +++ b/subdir.mak @@ -50,12 +50,12 @@ endif clean:: $(RM) $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ - $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) \ + $(foreach dir,$(DIRS),$(CLEANSUFFIXES:%=$(SUBDIR)$(dir)/%)) \ $(HOSTOBJS) $(HOSTPROGS) distclean:: clean - $(RM) $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \ - $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) + $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) \ + $(foreach dir,$(DIRS),$(DISTCLEANSUFFIXES:%=$(SUBDIR)$(dir)/%)) install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME) $(Q)mkdir -p "$(SHLIBDIR)"