From 75e96820c46addeba6accc4501ff47c40977db3f Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 28 Apr 2008 17:54:14 +0000 Subject: [PATCH] Merge now redundant clean and distclean rules into the top-level Makefile. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26583 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Makefile | 7 ++++--- mpcommon.mak | 6 ------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index d9883805dc..ff65e8408d 100644 --- a/Makefile +++ b/Makefile @@ -640,7 +640,8 @@ PARTS = libavcodec \ libpostproc \ libswscale \ -DIRS = dvdread \ +DIRS = . \ + dvdread \ gui \ gui/mplayer \ gui/mplayer/gtk \ @@ -810,14 +811,14 @@ uninstall: fi ; \ done -clean:: toolsclean +clean: toolsclean -rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \ codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \ codecs.conf.h help_mp.h version.h TAGS tags $(VIDIX_PCI_FILES) for part in $(PARTS); do $(MAKE) -C $$part clean; done rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.ho /*~, $(addsuffix $(suffix),$(dir)))) -distclean:: doxygen_clean +distclean: clean doxygen_clean for part in $(PARTS); do $(MAKE) -C $$part distclean; done -rm -f configure.log config.mak config.h rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir)))) diff --git a/mpcommon.mak b/mpcommon.mak index 1809074495..dea0f6b7d0 100644 --- a/mpcommon.mak +++ b/mpcommon.mak @@ -23,12 +23,6 @@ $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER): $(AR) r $@ $^ $(RANLIB) $@ -clean:: - rm -f *.o *.a *.ho *~ - -distclean:: clean - rm -f *.d test test2 - %.d: %.c $(MPDEPEND_CMD) > $@