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