Commit a90f2ae3 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added rule dist-bin based on value of BINARY_DIST_NAME_SUFFIX


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@883 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 22ce3acb
......@@ -12,6 +12,30 @@ dist-hook:
rm -rf `find $(distdir)/earthworm -name CVS`
rm -rf `find $(distdir)/seiscomp_templates -name CVS`
binary_dist_FILES= \
AUTHORS \
BUGS \
COPYING \
HISTORY \
INSTALL \
README \
README_DISTBIN \
bin/nmxptool${EXEEXT} \
earthworm/nmxptool.d \
earthworm/nmxptool.desc \
earthworm/nmxptool_cmd.html \
earthworm/nmxptool_ovr.html \
seiscomp_templates
binary_dist_name_suffix=${BINARY_DIST_NAME_SUFFIX}
binary_dist_name=${distdir}-bin-${binary_dist_name_suffix}
dist-bin:
echo ${binary_dist_name}
uname -a > README_DISTBIN
rm -fr bin && mkdir bin && cp src/nmxptool${EXEEXT} bin/
${AMTAR} chovf - --exclude "CVS" ${binary_dist_FILES} | GZIP=$(GZIP_ENV) gzip -c > ${binary_dist_name}.tar.gz
#
# http://www.gnu.org/software/automake/manual/html_node/Extending.html#Extending
clean-local:
@echo "example of clean-local"
......
......@@ -163,6 +163,35 @@ AM_CONDITIONAL(WITHEWSOURCES, test x$EWOS != x)
AM_CONDITIONAL(WITHEW, test x$with_ew != xno)
# Set BINARY_DIST_NAME_SUFFIX
case "$OSTYPE" in
solaris*)
RELEASE=`uname -r`
BINARY_DIST_NAME_SUFFIX=$MACHTYPE-$RELEASE-$OSTYPE
;;
darwin*)
MACHINE=`machine`
# BINARY_DIST_NAME_SUFFIX=$MACHINE-$MACHTYPE
BINARY_DIST_NAME_SUFFIX=$MACHINE-apple-$OSTYPE
;;
linux*)
BINARY_DIST_NAME_SUFFIX=$MACHTYPE
;;
win32*)
BINARY_DIST_NAME_SUFFIX=$MACHTYPE
;;
msys*)
BINARY_DIST_NAME_SUFFIX=$MACHTYPE
;;
*)
BINARY_DIST_NAME_SUFFIX=$MACHTYPE
AC_MSG_WARN(Unrecognised OS $OSTYPE)
;;
esac
AC_MSG_NOTICE(BINARY_DIST_NAME_SUFFIX set to $BINARY_DIST_NAME_SUFFIX)
AC_SUBST(BINARY_DIST_NAME_SUFFIX)
# Checks for files.
# Seedlink check.
......
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