making the libHLTqadm conditional in the HLT build system (dependence on AliQAv1)
[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_PHOS
25 PHOS_DIR=PHOS
26 endif
27
28 if EN_HLT_TRD
29 TRD_DIR=TRD
30 endif
31
32 if EN_HLT_FMD
33 FMD_DIR=FMD
34 endif
35
36 if EN_HLT_MUON
37 MUON_DIR=MUON
38 endif
39
40 if EN_HLT_COMP
41 COMP_DIR=comp
42 endif
43
44 if EN_HLT_TRIGGER
45 TRIGGER_DIR=trigger
46 endif
47
48 if EN_HLT_ITS
49 ITS_DIR=ITS
50 endif
51
52 if EN_HLT_EMCAL
53 EMCAL_DIR=EMCAL
54 endif
55
56 if EN_HLT_GLOBAL
57 GLOBAL_DIR=global
58 endif
59
60 if EN_HLT_JET
61 JET_DIR=JET
62 endif
63
64 if EN_HLT_QA
65 QA_DIR=QA
66 endif
67
68 SUBDIRS                 = BASE \
69                           $(ALIROOT_DEP) \
70                           $(RCU_DIR) \
71                           $(SAMPLE_DIR) \
72                           $(TPC_DIR) \
73                           $(PHOS_DIR) \
74                           $(TRD_DIR) \
75                           $(FMD_DIR) \
76                           $(MUON_DIR) \
77                           $(COMP_DIR) \
78                           $(TRIGGER_DIR) \
79                           $(ITS_DIR) \
80                           $(EMCAL_DIR) \
81                           $(GLOBAL_DIR) \
82                           $(JET_DIR) \
83                           $(QA_DIR) \
84                           doc
85
86 EXTRA_DIST              = libHLTbase.pkg \
87                           libHLTinterface.pkg \
88                           libHLTsim.pkg \
89                           libHLTrec.pkg \
90                           libHLTshuttle.pkg \
91                           libHLTpendolino.pkg \
92                           libHLTqadm.pkg \
93                           libAliHLTHOMER.pkg \
94                           libAliHLTUtil.pkg \
95                           libAliHLTSample.pkg \
96                           libAliHLTPHOS.pkg \
97                           libAliHLTTPC.pkg \
98                           libAliHLTTRD.pkg \
99                           libAliHLTFMD.pkg \
100                           libAliHLTMUON.pkg \
101                           libAliHLTComp.pkg \
102                           libAliHLTTrigger.pkg \
103                           libAliHLTRCU.pkg \
104                           libAliHLTITS.pkg \
105                           libAliHLTEMCAL.pkg \
106                           libAliHLTGlobal.pkg \
107                           libAliHLTJet.pkg \
108                           exa/sample-component1.C \
109                           exa/monitoring.C \
110                           hlt.conf \
111                           .revision
112
113 DIST_SUBDIRS            = $(SUBDIRS)
114
115 # this is a special target to create a stand-alone package from the SampleLib
116 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
117         @tmpdir=/tmp/$(USER)/$@ ; \
118         if test -d $@ ; then \
119           cp -ruv $(top_srcdir)/SampleLib/* $@; \
120           cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
121           cp -uv $(top_srcdir)/acinclude.m4 $@; \
122         else \
123           (test ! -d $$tmpdir || rm $$tmpdir); \
124           echo "creating package in tmp dir $$tmpdir" ; \
125           mkdir -p $$tmpdir && \
126           (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
127           cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
128           cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
129           (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
130           echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
131         fi
132
133 clean-local: 
134         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
135
136 svn-update:
137         @cd $(top_srcdir) ;\
138         revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
139         last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
140         if test "x$$revision" != "x" && test $$last -gt $$revision; then \
141                 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
142                 exit -1; \
143         fi
144
145 .revision: svn-update
146         @cd $(top_srcdir) ;\
147         svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@
148 #
149 # EOF
150 #