aboutsummaryrefslogtreecommitdiffstats
path: root/subdir.mak
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-03 15:50:14 +0100
committerMans Rullgard <mans@mansr.com>2011-06-03 19:33:32 +0100
commitdc6632f1195c929a87ddf1b02d12b681c6de79ad (patch)
tree4806221b6fdc5d20a912261a0c88669022508b2d /subdir.mak
parent6af2801088aef6dd7aa688e88073f13bc7a8a4f4 (diff)
downloadffmpeg-dc6632f1195c929a87ddf1b02d12b681c6de79ad.tar.gz
build: simplify commands for clean target
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'subdir.mak')
-rw-r--r--subdir.mak6
1 files 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)"