diff options
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/Makefile.am | 10 |
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 |
