Commit 78cccbec authored by Matteo Quintiliani's avatar Matteo Quintiliani

Improved rule dist-bin


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@891 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 1f321cf4
...@@ -12,7 +12,7 @@ dist-hook: ...@@ -12,7 +12,7 @@ dist-hook:
rm -rf `find $(distdir)/earthworm -name CVS` rm -rf `find $(distdir)/earthworm -name CVS`
rm -rf `find $(distdir)/seiscomp_templates -name CVS` rm -rf `find $(distdir)/seiscomp_templates -name CVS`
binary_dist_FILES= \ binary_distdir_FILES= \
AUTHORS \ AUTHORS \
BUGS \ BUGS \
COPYING \ COPYING \
...@@ -27,19 +27,20 @@ binary_dist_FILES= \ ...@@ -27,19 +27,20 @@ binary_dist_FILES= \
earthworm/nmxptool_ovr.html \ earthworm/nmxptool_ovr.html \
seiscomp_templates seiscomp_templates
binary_dist_name_suffix=${BINARY_DIST_NAME_SUFFIX} binary_distdir_suffix=${BINARY_DIST_NAME_SUFFIX}
binary_dist_name=${distdir}-bin-${binary_dist_name_suffix} binary_distdir=${distdir}-bin-${binary_distdir_suffix}
dist-bin: dist-bin:
echo ${binary_dist_name} echo ${binary_distdir}
uname -a > README_DISTBIN uname -a > README_DISTBIN
rm -fr bin && mkdir bin && cp src/nmxptool${EXEEXT} bin/ rm -fr bin && mkdir bin && cp src/nmxptool${EXEEXT} bin/
rm -fr ${binary_dist_name} rm -fr ${binary_distdir}
mkdir ${binary_dist_name} mkdir ${binary_distdir}
${AMTAR} -cf - --exclude "CVS" ${binary_dist_FILES} | ${AMTAR} xpf - -C ${binary_dist_name} ${AMTAR} -cf - ${binary_distdir_FILES} | ${AMTAR} xpf - -C ${binary_distdir}
${AMTAR} chvf - ${binary_dist_name} | GZIP=$(GZIP_ENV) gzip -c > ${binary_dist_name}.tar.gz rm -fr `find ${binary_distdir} -name CVS`
rm -fr ${binary_dist_name} ${AMTAR} chvf - ${binary_distdir} | GZIP=$(GZIP_ENV) gzip -c > ${binary_distdir}.tar.gz
# rm -fr ${binary_distdir}
# http://www.gnu.org/software/automake/manual/html_node/Extending.html#Extending # http://www.gnu.org/software/automake/manual/html_node/Extending.html#Extending
clean-local: clean-local:
@echo "example of clean-local" @echo "example of clean-local"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment