From 740a6045cd1592f93f0b1bb42268b900134c3bf9 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 27 Mar 2009 22:54:54 +0100 Subject: Workaround symlink dereference of sample files by tar'ing them --- sample/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sample/Makefile.am') diff --git a/sample/Makefile.am b/sample/Makefile.am index 1ab712f..95f430d 100644 --- a/sample/Makefile.am +++ b/sample/Makefile.am @@ -2,5 +2,13 @@ NULL = EXTRA_DIST = \ gen.sh \ - src \ $(NULL) + +SRC_TARBALL = src.tar.gz + +all: + if [[ ! -d src && -f ${SRC_TARBALL} ]] ; then tar -xvzf ${SRC_TARBALL}; fi + + +dist-hook: + if [[ -d src ]]; then tar -cvzf $(distdir)/${SRC_TARBALL} src; fi -- cgit v1.2.3