summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-07 21:47:48 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-07 21:47:48 +0200
commiteb8f03a80539f0ce63246811210a374d092aeb00 (patch)
treeb1207ccd6b81bfdb23777fd4ee241507535687b4
parent9ba43f6efbe0f52cb5c0d2d00fec77b32a78d9b2 (diff)
downloadxine-lib-eb8f03a80539f0ce63246811210a374d092aeb00.tar.gz
xine-lib-eb8f03a80539f0ce63246811210a374d092aeb00.tar.bz2
Add a dist-hook rule to copy ffmpeg source code to the tarball.
With this hook, the sources listed in ffmpeg-distfiles are copied to the temporary directory used by make dist to prepare the tarball, allowing to use the same "make dist" command used before even if FFmpeg is not using automake Makefiles.
-rw-r--r--contrib/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 9b737dc3f..16444bd46 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -41,3 +41,12 @@ distclean-local:
-$(MAKE) -C ffmpeg distclean
EXTRA_DIST = README.contrib ffmpeg-distfiles
+
+dist-hook:
+ while read entry; do \
+ test -d $(srcdir)/$$entry && \
+ mkdir -p $(distdir)/$$entry; \
+ test -f $(srcdir)/$$entry && \
+ cp -p $(srcdir)/$$entry $(distdir)/$$entry; \
+ done < $(srcdir)/ffmpeg-distfiles
+