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
This commit is contained in:
diego 2008-04-28 17:54:14 +00:00
parent d90a7e0283
commit 75e96820c4
2 changed files with 4 additions and 9 deletions

View File

@ -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))))

View File

@ -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) > $@