summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-27 22:54:54 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-27 22:54:54 +0100
commit740a6045cd1592f93f0b1bb42268b900134c3bf9 (patch)
tree63d981617c1d506f2f5bad8ebcc945235c70cc32 /sample
parent0e7af38d06339287d8ffe72bdd7af4d5e7e0001d (diff)
downloadcataract-740a6045cd1592f93f0b1bb42268b900134c3bf9.tar.xz
Workaround symlink dereference of sample files by tar'ing them
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile.am10
1 files changed, 9 insertions, 1 deletions
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