diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-19 15:51:06 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-19 15:51:06 +0000 |
commit | bf2a47d8717adb2306d1538e7d1f57ea1543e4a9 (patch) | |
tree | 6099c5d5f445646ea5bd05fe56e752b145e4b2a1 | |
parent | dc161a651e146ee763b303e4effac3addb9a67a2 (diff) |
Introduce ADD_ALL_DIRS function to factorize clean and distclean target commands
to remove certain patterns in all subdirectories.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29195 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -953,15 +953,16 @@ uninstall: rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1 rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man))) +ADD_ALL_DIRS = $(foreach dir,$(DIRS),$(foreach suffix,$(1),$(addsuffix $(suffix),$(dir)))) ADD_ALL_EXESUFS = $(foreach file,$(1),$(foreach exesuf,$(EXESUFS_ALL),$(file) $(file)$(exesuf))) clean: - -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir)))) + -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder) distclean: clean testsclean toolsclean driversclean dhahelperclean dhahelperwinclean -rm -rf DOCS/tech/doxygen - -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir)))) + -rm -f $(call ADD_ALL_DIRS,/*.d) -rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \ version.h $(VIDIX_PCI_FILES) TAGS tags -rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo) |