Commit bc596af0 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added following target for make:

install-seiscomp-bin
install-seiscomp-templates
install-ew-bin
install-ew-conf


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@721 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 0ba0eda5
......@@ -7,3 +7,39 @@ dist_doc_DATA = README
clean-local:
@echo "example of clean-local"
NMXPTOOLBINSRC=src/nmxptool
DIRBINEW=${EW_HOME}/${EW_VERSION}/bin
NMXPTOOLBINEW=${DIRBINEW}/nmxptool
SEISCOMPDIRTEMPLATES=${SEISCOMPDIR}/acquisition/templates/source
DIRBINSEISCOMP=${SEISCOMPDIR}/acquisition/bin
NMXPTOOLBINSEISCOMP=${DIRBINSEISCOMP}/nmxptool
if WITHEWSOURCES
install-ew-bin: ${NMXPTOOLBINSRC}
test -d "${DIRBINEW}"
${INSTALL_PROGRAM} '${NMXPTOOLBINSRC}' '${NMXPTOOLBINEW}'
install-ew-conf:
test -d "${EW_PARAMS}"
${INSTALL_DATA} 'earthworm/nmxptool.d' '${EW_PARAMS}/nmxptool.d'
${INSTALL_DATA} 'earthworm/nmxptool.desc' '${EW_PARAMS}/nmxptool.desc'
endif
if WITHSEEDLINK
install-seiscomp-bin: ${NMXPTOOLBINSRC}
test -d "${DIRBINSEISCOMP}"
${INSTALL_PROGRAM} '${NMXPTOOLBINSRC}' '${NMXPTOOLBINSEISCOMP}'
install-seiscomp-templates:
test -d "${SEISCOMPDIRTEMPLATES}"
test -d "${SEISCOMPDIRTEMPLATES}/135_nmxptool" || ./install-sh -c -d '${SEISCOMPDIRTEMPLATES}/135_nmxptool'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/chain_digiserv_station.tpl' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/chain_digiserv_station.tpl'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/chain_digiserv_station_trig.tpl' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/chain_digiserv_station_trig.tpl'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/key' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/key'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/plugins.ini.tpl' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/plugins.ini.tpl'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/seedlink_plugin.tpl' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/seedlink_plugin.tpl'
${INSTALL_DATA} 'seiscomp_templates/135_nmxptool/seedlink_station.tpl' '${SEISCOMPDIRTEMPLATES}/135_nmxptool/seedlink_station.tpl'
endif
......@@ -140,6 +140,9 @@ AS_IF([test "x$with_ew" != xno],
esac
AC_MSG_WARN(EWOS set to $EWOS)
AC_SUBST(EWOS)
AC_SUBST(EW_HOME)
AC_SUBST(EW_VERSION)
AC_SUBST(EW_PARAMS)
],
[
LIBS="$LIBS $EWOBJS"
......@@ -157,7 +160,18 @@ AM_CONDITIONAL(WITHEWSOURCES, test x$EWOS != x)
# Seedlink check.
AS_IF([test "x$with_seedlink" != xno],
[AC_CHECK_FILES([./src/seedlink_plugin.c ./src/seedlink_plugin.h], [], AC_MSG_ERROR([seedlink plug-in sources not found!]))],
[
AC_CHECK_FILES([./src/seedlink_plugin.c ./src/seedlink_plugin.h], [], AC_MSG_ERROR([seedlink plug-in sources not found!]))
AS_IF([test "x$SEISCOMPDIR" == x],
[
SEISCOMPDIR=/home/sysop/seiscomp
]
)
AC_MSG_WARN([SEISCOMPDIR is set to ${SEISCOMPDIR}])
AC_SUBST(SEISCOMPDIR)
],
[AC_MSG_WARN([SeedLink support has been disabled!])]
)
AM_CONDITIONAL(WITHSEEDLINK, test x$with_seedlink != xno)
......
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