Makefile.am 2.31 KB
Newer Older
1 2 3
# mtheo

SUBDIRS = src
4 5 6 7 8 9 10 11 12 13
dist_doc_DATA = BUGS HISTORY README earthworm seiscomp_templates makefile.sol makefile.ux

EWMAKEFILESOL=earthworm/makefile.ux.nognu
EWMAKEFILEUX=earthworm/makefile.ux.nognu

dist-hook:
	ln -f -s ${EWMAKEFILESOL} makefile.sol
	ln -f -s ${EWMAKEFILEUX} makefile.ux
	rm -rf `find $(distdir)/earthworm -name CVS`
	rm -rf `find $(distdir)/seiscomp_templates -name CVS`
14

15 16 17 18
# http://www.gnu.org/software/automake/manual/html_node/Extending.html#Extending
clean-local:
	@echo "example of clean-local"

19 20
NMXPTOOLBINNAME=nmxptool${EXEEXT}
NMXPTOOLBINSRC=src/${NMXPTOOLBINNAME}
21 22

DIRBINEW=${EW_HOME}/${EW_VERSION}/bin
23
NMXPTOOLBINEW=${DIRBINEW}/${NMXPTOOLBINNAME}
24 25 26

SEISCOMPDIRTEMPLATES=${SEISCOMPDIR}/acquisition/templates/source
DIRBINSEISCOMP=${SEISCOMPDIR}/acquisition/bin
27
NMXPTOOLBINSEISCOMP=${DIRBINSEISCOMP}/${NMXPTOOLBINNAME}
28

Matteo Quintiliani's avatar
Matteo Quintiliani committed
29
if WITHEW
30 31 32 33 34 35 36 37
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'
38 39 40

uninstall-ew-bin:
	rm -f ${NMXPTOOLBINEW}
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
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'
57 58 59

uninstall-seiscomp-bin:
	rm -f ${NMXPTOOLBINSEISCOMP}
60 61
endif