# HG changeset patch # User diego # Date 1311329108 0 # Node ID 2a4a9659d15453dfcdb892cca24d91cf0dc2edf5 # Parent 94292629886d30f3541616ad31da9d8117ec94e1 build: fix negative interaction between clean and distclean targets Due to the order in which double-colon rules get evaluated and executed, the ffmpeg/ subdirectory clean dependency of the distclean target was run after the distclean target in the ffmpeg/ subdirectory. Since the distclean target removes config.mak, the clean target failed because config.mak is required. diff -r 94292629886d -r 2a4a9659d154 Makefile --- a/Makefile Thu Jul 21 22:25:17 2011 +0000 +++ b/Makefile Fri Jul 22 10:05:08 2011 +0000 @@ -917,14 +917,13 @@ 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))) -clean distclean:: +clean: $(MAKE) -C ffmpeg $@ - -clean:: -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder) -distclean:: clean testsclean toolsclean driversclean dhahelperclean +distclean: clean testsclean toolsclean driversclean dhahelperclean + $(MAKE) -C ffmpeg $@ -rm -rf DOCS/tech/doxygen -rm -f $(call ADD_ALL_DIRS,/*.d) -rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags