summaryrefslogtreecommitdiff
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
parent0e7af38d06339287d8ffe72bdd7af4d5e7e0001d (diff)
downloadcataract-740a6045cd1592f93f0b1bb42268b900134c3bf9.tar.xz
Workaround symlink dereference of sample files by tar'ing them
-rw-r--r--.gitignore3
-rw-r--r--sample/Makefile.am10
2 files changed, 12 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 9f8eda2..41ee785 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,3 +37,6 @@ src/Makefile
TODO.txt
*.o
+
+cataract-*.tar*
+sample/src.tar.gz
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