summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-04-13 10:23:38 +0000
committerDiego Biurrun <diego@biurrun.de>2008-04-13 10:23:38 +0000
commit95d2afec0f458ecb4ee3181b28096b3a1fd5f135 (patch)
tree2b0ad8460789e906c0097aa70875caa366cda0d6 /common.mak
parent7b1b3dc1284d5914ec4dcf627d2b24172b1ac702 (diff)
Remove all dependency files on distclean.
Originally committed as revision 12802 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.mak b/common.mak
index a7d41048ae..2ec0dffd13 100644
--- a/common.mak
+++ b/common.mak
@@ -67,6 +67,7 @@ depend dep: $(DEPS)
CLEANSUFFIXES = *.o *~ *.ho
LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a *.exp *.map
+DISTCLEANSUFFIXES = *.d
define RULES
$(SUBDIR)%: $(SUBDIR)%.o $(LIBNAME)
@@ -80,7 +81,8 @@ clean::
$(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
distclean:: clean
- rm -f $(DEPS)
+ rm -f $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
+ $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
endef
$(eval $(RULES))