From eb8f03a80539f0ce63246811210a374d092aeb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 7 Apr 2007 21:47:48 +0200 Subject: 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. --- contrib/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + -- cgit v1.2.3