Author: diego Date: Tue Jul 12 16:12:41 2011 New Revision: 33881 Log: build: Rely on Libav/FFmpeg build system to run clean targets. This saves some maintenance work going forward. Modified: trunk/Makefile Modified: trunk/Makefile ============================================================================== --- trunk/Makefile Tue Jul 12 12:19:59 2011 (r33880) +++ trunk/Makefile Tue Jul 12 16:12:41 2011 (r33881) @@ -710,30 +710,6 @@ INSTALL_TARGETS-$(MENCODER) += install-m INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man DIRS = . \ - ffmpeg/libavcodec \ - ffmpeg/libavcodec/alpha \ - ffmpeg/libavcodec/arm \ - ffmpeg/libavcodec/bfin \ - ffmpeg/libavcodec/mlib \ - ffmpeg/libavcodec/ppc \ - ffmpeg/libavcodec/sh4 \ - ffmpeg/libavcodec/sparc \ - ffmpeg/libavcodec/x86 \ - ffmpeg/libavformat \ - ffmpeg/libavutil \ - ffmpeg/libavutil/arm \ - ffmpeg/libavutil/bfin \ - ffmpeg/libavutil/ppc \ - ffmpeg/libavutil/sh4 \ - ffmpeg/libavutil/tomi \ - ffmpeg/libavutil/x86 \ - ffmpeg/libpostproc \ - ffmpeg/libswscale \ - ffmpeg/libswscale/bfin \ - ffmpeg/libswscale/mlib \ - ffmpeg/libswscale/ppc \ - ffmpeg/libswscale/sparc \ - ffmpeg/libswscale/x86 \ gui \ gui/skin \ gui/ui \ @@ -940,11 +916,14 @@ 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))) -clean: +clean distclean:: + $(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 -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
diego <subversion <at> mplayerhq.hu> writes:
Log: build: Rely on Libav/FFmpeg build system to run clean targets.
If this doesn't get fixed until Monday, I'll revert. Carl Eugen
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
diego <subversion <at> mplayerhq.hu> writes:
Log: build: Rely on Libav/FFmpeg build system to run clean targets.
If this doesn't get fixed until Monday, I'll revert.
This (inlined, empty line at the end) might be better: Index: Makefile =================================================================== --- Makefile (revision 33883) +++ Makefile (working copy) @@ -918,8 +918,6 @@ -clean distclean:: - $(MAKE) -C ffmpeg $@ - clean:: + $(MAKE) -C ffmpeg $@ -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
On Fri, Jul 22, 2011 at 08:38:44AM +0000, Carl Eugen Hoyos wrote:
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
diego <subversion <at> mplayerhq.hu> writes:
Log: build: Rely on Libav/FFmpeg build system to run clean targets.
If this doesn't get fixed until Monday, I'll revert.
This (inlined, empty line at the end) might be better:
No, because ...
--- Makefile (revision 33883) +++ Makefile (working copy) @@ -918,8 +918,6 @@
-clean distclean:: - $(MAKE) -C ffmpeg $@ - clean:: + $(MAKE) -C ffmpeg $@ -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
... the ffmpeg/ subdirectory will no longer be distcleaned. Diego
Diego Biurrun <diego <at> biurrun.de> writes:
-clean distclean:: - $(MAKE) -C ffmpeg $@ - clean:: + $(MAKE) -C ffmpeg $@ -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
... the ffmpeg/ subdirectory will no longer be distcleaned.
Which makes a difference for which files? CE
On Fri, Jul 22, 2011 at 12:43:25PM +0000, Carl Eugen Hoyos wrote:
Diego Biurrun <diego <at> biurrun.de> writes:
-clean distclean:: - $(MAKE) -C ffmpeg $@ - clean:: + $(MAKE) -C ffmpeg $@ -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
... the ffmpeg/ subdirectory will no longer be distcleaned.
Which makes a difference for which files?
ffmpeg/config.mak, ffmpeg/config.h ffmpeg/libavutil/avconfig.h Diego
On Sun, Jul 24, 2011 at 01:26:30PM +0000, Carl Eugen Hoyos wrote:
Diego Biurrun <diego <at> biurrun.de> writes:
... the ffmpeg/ subdirectory will no longer be distcleaned.
Which makes a difference for which files?
ffmpeg/config.mak, ffmpeg/config.h ffmpeg/libavutil/avconfig.h
Wrong.
You have a slightly convoluted way of pointing out that I missed removing a redundant line from MPlayer's Makefile, but thanks for the hint anyway. Diego
Author: diego Date: Tue Jul 12 16:12:41 2011 New Revision: 33881
Log: build: Rely on Libav/FFmpeg build system to run clean targets.
This saves some maintenance work going forward.
This doesn't work if ffmpeg is a link: config.mak:3: ../config.mak: No such file or directory If worked fine until then. Ingo
On Thu, Aug 18, 2011 at 04:36:42PM +0200, Ingo Brückl wrote:
Log: build: Rely on Libav/FFmpeg build system to run clean targets.
This saves some maintenance work going forward.
This doesn't work if ffmpeg is a link:
config.mak:3: ../config.mak: No such file or directory
If worked fine until then.
This has far too little information to qualify as a bug report and it looks bogus. At least it's completely unreproducible. Diego
Le duodi 2 fructidor, an CCXIX, Diego Biurrun a écrit :
This has far too little information to qualify as a bug report and it looks bogus. At least it's completely unreproducible.
I can reproduce, naïvely: git clone --depth 1 git://git.videolan.org/ffmpeg.git svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd mplayer ln -s ../ffmpeg . ./configure make The result is: config.mak:3: ../config.mak: No such file or directory The problem is there: (2010-09-28 20:46:19 +0000 8671) cat > ffmpeg/config.mak << EOF (2011-06-26 14:16:40 +0000 8672) ifndef FFMPEG_CONFIG_MAK (2011-06-26 14:16:40 +0000 8673) FFMPEG_CONFIG_MAK = 1 (2011-06-26 14:16:40 +0000 8674) include ../config.mak (2011-07-04 00:36:08 +0000 8675) endif # FFMPEG_CONFIG_MAK (2010-09-28 20:46:19 +0000 8676) EOF (2010-09-28 20:46:19 +0000 8677) (2011-05-30 20:23:45 +0000 8678) cat > ffmpeg/config.h << EOF (2011-05-30 20:23:45 +0000 8679) #include "../config.h" (2011-05-30 20:23:45 +0000 8680) EOF if ffmpeg is a symlink towards something not in the mplayer directory, then .. does not lead to what you expect. Regards, -- Nicolas George
On Fri, Aug 19, 2011 at 02:48:33PM +0200, Nicolas George wrote:
Le duodi 2 fructidor, an CCXIX, Diego Biurrun a écrit :
This has far too little information to qualify as a bug report and it looks bogus. At least it's completely unreproducible.
if ffmpeg is a symlink towards something not in the mplayer directory, then .. does not lead to what you expect.
OK, I just tested links inside the mplayer dir before committing this. Linking to something outside the mplayer dir is equivalent to building out-of-tree, which is unsupported. Diego
participants (5)
-
Carl Eugen Hoyos -
diego -
Diego Biurrun -
Ingo Brückl -
Nicolas George