Update master to aliroot
[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 \
27c9fa67 8 QA \
ff4edcee 9 shuttle \
73c1ebf5 10 pendolino
7233bc62 11endif
12
b521659f 13if EN_HLT_SAMPLE
14SAMPLE_DIR=SampleLib
15endif
16
17if EN_HLT_TPC
3daf4fbc 18TPC_DIR=TPCLib
b521659f 19endif
20
5e3820e2 21if EN_HLT_RCU
22RCU_DIR=RCU
23endif
24
fe8738cf 25if EN_HLT_CALO
26CALO_DIR=CALO
27endif
28
c160eda8 29if EN_HLT_PHOS
30PHOS_DIR=PHOS
31endif
32
fe8738cf 33if EN_HLT_EMCAL
34EMCAL_DIR=EMCAL
35endif
36
0f51f5b8 37if EN_HLT_TRD
38TRD_DIR=TRD
39endif
40
50a3793d 41if EN_HLT_FMD
42FMD_DIR=FMD
43endif
44
57cd80a1 45if EN_HLT_ZDC
46ZDC_DIR=ZDC
47endif
48
5c561c5b 49if EN_HLT_MUON
50MUON_DIR=MUON
51endif
52
e89e6b23 53if EN_HLT_COMP
54COMP_DIR=comp
55endif
56
d6e2c707 57if EN_HLT_TRIGGER
3daf4fbc 58TRIGGER_DIR=trigger
d6e2c707 59endif
60
61if EN_HLT_ITS
62ITS_DIR=ITS
63endif
3daf4fbc 64
ec6160d5 65if EN_HLT_GLOBAL
66GLOBAL_DIR=global
67endif
68
33daad3d 69if EN_HLT_JET
70JET_DIR=JET
71endif
72
aed3e6fc 73if EN_HLT_VZERO
74VZERO_DIR=VZERO
75endif
76
b521659f 77SUBDIRS = BASE \
7233bc62 78 $(ALIROOT_DEP) \
c3800c65 79 $(RCU_DIR) \
b521659f 80 $(SAMPLE_DIR) \
81 $(TPC_DIR) \
fe8738cf 82 $(CALO_DIR) \
c160eda8 83 $(PHOS_DIR) \
fe8738cf 84 $(EMCAL_DIR) \
0f51f5b8 85 $(TRD_DIR) \
50a3793d 86 $(FMD_DIR) \
57cd80a1 87 $(ZDC_DIR) \
5c561c5b 88 $(MUON_DIR) \
e89e6b23 89 $(COMP_DIR) \
3daf4fbc 90 $(TRIGGER_DIR) \
d6e2c707 91 $(ITS_DIR) \
ec6160d5 92 $(GLOBAL_DIR) \
73c1ebf5 93 $(JET_DIR) \
aed3e6fc 94 $(VZERO_DIR) \
73c1ebf5 95 $(QA_DIR) \
b521659f 96 doc
97
2d7ff710 98EXTRA_DIST = libHLTbase.pkg \
d098ebd4 99 libHLTinterface.pkg \
4cbaf07b 100 libHLTsim.pkg \
101 libHLTrec.pkg \
8f471af0 102 libHLTshuttle.pkg \
a3c9b745 103 libHLTpendolino.pkg \
73c1ebf5 104 libHLTqadm.pkg \
4cbaf07b 105 libAliHLTHOMER.pkg \
242bb794 106 libAliHLTUtil.pkg \
2d7ff710 107 libAliHLTSample.pkg \
3cde846d 108 libAliHLTPHOS.pkg \
dfaa582a 109 libAliHLTTPC.pkg \
0f51f5b8 110 libAliHLTTRD.pkg \
5dded172 111 libAliHLTFMD.pkg \
57cd80a1 112 libAliHLTZDC.pkg \
5c561c5b 113 libAliHLTMUON.pkg \
e89e6b23 114 libAliHLTComp.pkg \
3daf4fbc 115 libAliHLTTrigger.pkg \
8f471af0 116 libAliHLTRCU.pkg \
117 libAliHLTITS.pkg \
5dded172 118 libAliHLTEMCAL.pkg \
ec6160d5 119 libAliHLTGlobal.pkg \
33daad3d 120 libAliHLTJet.pkg \
aed3e6fc 121 libAliHLTVZERO.pkg \
8f471af0 122 exa/sample-component1.C \
123 exa/monitoring.C \
7233bc62 124 hlt.conf \
125 .revision
2d7ff710 126
b521659f 127DIST_SUBDIRS = $(SUBDIRS)
128
242bb794 129# this is a special target to create a stand-alone package from the SampleLib
2d7ff710 130SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
131 @tmpdir=/tmp/$(USER)/$@ ; \
132 if test -d $@ ; then \
133 cp -ruv $(top_srcdir)/SampleLib/* $@; \
134 cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
135 cp -uv $(top_srcdir)/acinclude.m4 $@; \
136 else \
137 (test ! -d $$tmpdir || rm $$tmpdir); \
138 echo "creating package in tmp dir $$tmpdir" ; \
139 mkdir -p $$tmpdir && \
140 (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
141 cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
142 cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
143 (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
144 echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
145 fi
146
147clean-local:
148 (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
149
7233bc62 150svn-update:
151 @cd $(top_srcdir) ;\
152 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
153 last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
154 if test "x$$revision" != "x" && test $$last -gt $$revision; then \
155 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
156 exit -1; \
157 fi
158
159.revision: svn-update
160 @cd $(top_srcdir) ;\
161 svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@
b521659f 162#
163# EOF
164#