]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/Makefile.am
Protection against division by zero.
[u/mrichter/AliRoot.git] / HLT / Makefile.am
CommitLineData
b521659f 1# $Id$
2# Makefile template for the Alice HLT framework and components
3
4
7233bc62 5if HAVE_ALIROOT
6ALIROOT_DEP=sim \
7 rec \
ff4edcee 8 shuttle \
9 pendolino
7233bc62 10endif
11
b521659f 12if EN_HLT_SAMPLE
13SAMPLE_DIR=SampleLib
14endif
15
16if EN_HLT_TPC
3daf4fbc 17TPC_DIR=TPCLib
b521659f 18endif
19
5e3820e2 20if EN_HLT_RCU
21RCU_DIR=RCU
22endif
23
c160eda8 24if EN_HLT_PHOS
25PHOS_DIR=PHOS
26endif
27
0f51f5b8 28if EN_HLT_TRD
29TRD_DIR=TRD
30endif
31
5c561c5b 32if EN_HLT_MUON
33MUON_DIR=MUON
34endif
35
e89e6b23 36if EN_HLT_COMP
37COMP_DIR=comp
38endif
39
d6e2c707 40if EN_HLT_TRIGGER
3daf4fbc 41TRIGGER_DIR=trigger
d6e2c707 42endif
43
44if EN_HLT_ITS
45ITS_DIR=ITS
46endif
3daf4fbc 47
b521659f 48SUBDIRS = BASE \
7233bc62 49 $(ALIROOT_DEP) \
c3800c65 50 $(RCU_DIR) \
b521659f 51 $(SAMPLE_DIR) \
52 $(TPC_DIR) \
c160eda8 53 $(PHOS_DIR) \
0f51f5b8 54 $(TRD_DIR) \
5c561c5b 55 $(MUON_DIR) \
e89e6b23 56 $(COMP_DIR) \
3daf4fbc 57 $(TRIGGER_DIR) \
d6e2c707 58 $(ITS_DIR) \
b521659f 59 doc
60
2d7ff710 61EXTRA_DIST = libHLTbase.pkg \
d098ebd4 62 libHLTinterface.pkg \
4cbaf07b 63 libHLTsim.pkg \
64 libHLTrec.pkg \
8f471af0 65 libHLTshuttle.pkg \
a3c9b745 66 libHLTpendolino.pkg \
4cbaf07b 67 libAliHLTHOMER.pkg \
242bb794 68 libAliHLTUtil.pkg \
2d7ff710 69 libAliHLTSample.pkg \
3cde846d 70 libAliHLTPHOS.pkg \
dfaa582a 71 libAliHLTTPC.pkg \
0f51f5b8 72 libAliHLTTRD.pkg \
5c561c5b 73 libAliHLTMUON.pkg \
e89e6b23 74 libAliHLTComp.pkg \
3daf4fbc 75 libAliHLTTrigger.pkg \
8f471af0 76 libAliHLTRCU.pkg \
77 libAliHLTITS.pkg \
78 exa/sample-component1.C \
79 exa/monitoring.C \
7233bc62 80 hlt.conf \
81 .revision
2d7ff710 82
b521659f 83DIST_SUBDIRS = $(SUBDIRS)
84
242bb794 85# this is a special target to create a stand-alone package from the SampleLib
2d7ff710 86SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
87 @tmpdir=/tmp/$(USER)/$@ ; \
88 if test -d $@ ; then \
89 cp -ruv $(top_srcdir)/SampleLib/* $@; \
90 cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
91 cp -uv $(top_srcdir)/acinclude.m4 $@; \
92 else \
93 (test ! -d $$tmpdir || rm $$tmpdir); \
94 echo "creating package in tmp dir $$tmpdir" ; \
95 mkdir -p $$tmpdir && \
96 (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
97 cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
98 cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
99 (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
100 echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
101 fi
102
103clean-local:
104 (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
105
7233bc62 106svn-update:
107 @cd $(top_srcdir) ;\
108 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
109 last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
110 if test "x$$revision" != "x" && test $$last -gt $$revision; then \
111 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
112 exit -1; \
113 fi
114
115.revision: svn-update
116 @cd $(top_srcdir) ;\
117 svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@
b521659f 118#
119# EOF
120#