OSDN Git Service

Remove all dependency files on distclean.
authorDiego Biurrun <diego@biurrun.de>
Sun, 13 Apr 2008 10:23:38 +0000 (10:23 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 13 Apr 2008 10:23:38 +0000 (10:23 +0000)
Originally committed as revision 12802 to svn://svn.ffmpeg.org/ffmpeg/trunk

common.mak

index a7d4104..2ec0dff 100644 (file)
@@ -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))