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