mirror of https://github.com/mpv-player/mpv
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:
parent
d90a7e0283
commit
75e96820c4
7
Makefile
7
Makefile
|
@ -640,7 +640,8 @@ PARTS = libavcodec \
|
||||||
libpostproc \
|
libpostproc \
|
||||||
libswscale \
|
libswscale \
|
||||||
|
|
||||||
DIRS = dvdread \
|
DIRS = . \
|
||||||
|
dvdread \
|
||||||
gui \
|
gui \
|
||||||
gui/mplayer \
|
gui/mplayer \
|
||||||
gui/mplayer/gtk \
|
gui/mplayer/gtk \
|
||||||
|
@ -810,14 +811,14 @@ uninstall:
|
||||||
fi ; \
|
fi ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:: toolsclean
|
clean: toolsclean
|
||||||
-rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \
|
-rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \
|
||||||
codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \
|
codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \
|
||||||
codecs.conf.h help_mp.h version.h TAGS tags $(VIDIX_PCI_FILES)
|
codecs.conf.h help_mp.h version.h TAGS tags $(VIDIX_PCI_FILES)
|
||||||
for part in $(PARTS); do $(MAKE) -C $$part clean; done
|
for part in $(PARTS); do $(MAKE) -C $$part clean; done
|
||||||
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.ho /*~, $(addsuffix $(suffix),$(dir))))
|
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
|
for part in $(PARTS); do $(MAKE) -C $$part distclean; done
|
||||||
-rm -f configure.log config.mak config.h
|
-rm -f configure.log config.mak config.h
|
||||||
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
|
rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
|
||||||
|
|
|
@ -23,12 +23,6 @@ $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
|
||||||
$(AR) r $@ $^
|
$(AR) r $@ $^
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
clean::
|
|
||||||
rm -f *.o *.a *.ho *~
|
|
||||||
|
|
||||||
distclean:: clean
|
|
||||||
rm -f *.d test test2
|
|
||||||
|
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
$(MPDEPEND_CMD) > $@
|
$(MPDEPEND_CMD) > $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue