summaryrefslogtreecommitdiff
path: root/sample/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'sample/Makefile.am')
-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