Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT framework and components
3
4
5 if HAVE_ALIROOT
6 ALIROOT_DEP=sim \
7             rec \
8             QA \
9             shuttle \
10             pendolino
11 endif
12
13 if EN_HLT_SAMPLE
14 SAMPLE_DIR=SampleLib    
15 endif
16
17 if EN_HLT_TPC
18 TPC_DIR=TPCLib
19 endif
20
21 if EN_HLT_RCU
22 RCU_DIR=RCU
23 endif
24
25 if EN_HLT_CALO
26 CALO_DIR=CALO
27 endif
28
29 if EN_HLT_PHOS
30 PHOS_DIR=PHOS
31 endif
32
33 if EN_HLT_EMCAL
34 EMCAL_DIR=EMCAL
35 endif
36
37 if EN_HLT_TRD
38 TRD_DIR=TRD
39 endif
40
41 if EN_HLT_FMD
42 FMD_DIR=FMD
43 endif
44
45 if EN_HLT_ZDC
46 ZDC_DIR=ZDC
47 endif
48
49 if EN_HLT_MUON
50 MUON_DIR=MUON
51 endif
52
53 if EN_HLT_COMP
54 COMP_DIR=comp
55 endif
56
57 if EN_HLT_TRIGGER
58 TRIGGER_DIR=trigger
59 endif
60
61 if EN_HLT_ITS
62 ITS_DIR=ITS
63 endif
64
65 if EN_HLT_GLOBAL
66 GLOBAL_DIR=global
67 endif
68
69 if EN_HLT_JET
70 JET_DIR=JET
71 endif
72
73 if EN_HLT_VZERO
74 VZERO_DIR=VZERO
75 endif
76
77 SUBDIRS                 = BASE \
78                           $(ALIROOT_DEP) \
79                           $(RCU_DIR) \
80                           $(SAMPLE_DIR) \
81                           $(TPC_DIR) \
82                           $(CALO_DIR) \
83                           $(PHOS_DIR) \
84                           $(EMCAL_DIR) \
85                           $(TRD_DIR) \
86                           $(FMD_DIR) \
87                           $(ZDC_DIR) \
88                           $(MUON_DIR) \
89                           $(COMP_DIR) \
90                           $(TRIGGER_DIR) \
91                           $(ITS_DIR) \
92                           $(GLOBAL_DIR) \
93                           $(JET_DIR) \
94                           $(VZERO_DIR) \
95                           $(QA_DIR) \
96                           doc
97
98 EXTRA_DIST              = libHLTbase.pkg \
99                           libHLTinterface.pkg \
100                           libHLTsim.pkg \
101                           libHLTrec.pkg \
102                           libHLTshuttle.pkg \
103                           libHLTpendolino.pkg \
104                           libHLTqadm.pkg \
105                           libAliHLTHOMER.pkg \
106                           libAliHLTUtil.pkg \
107                           libAliHLTSample.pkg \
108                           libAliHLTPHOS.pkg \
109                           libAliHLTTPC.pkg \
110                           libAliHLTTRD.pkg \
111                           libAliHLTFMD.pkg \
112                           libAliHLTZDC.pkg \
113                           libAliHLTMUON.pkg \
114                           libAliHLTComp.pkg \
115                           libAliHLTTrigger.pkg \
116                           libAliHLTRCU.pkg \
117                           libAliHLTITS.pkg \
118                           libAliHLTEMCAL.pkg \
119                           libAliHLTGlobal.pkg \
120                           libAliHLTJet.pkg \
121                           libAliHLTVZERO.pkg \
122                           exa/sample-component1.C \
123                           exa/monitoring.C \
124                           hlt.conf \
125                           .revision
126
127 DIST_SUBDIRS            = $(SUBDIRS)
128
129 # this is a special target to create a stand-alone package from the SampleLib
130 SampleLibPkg: 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
147 clean-local: 
148         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
149
150 svn-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' > $@
162 #
163 # EOF
164 #