]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/Makefile.am
c580548c1132141f0643d983f3111a7d8d2000c9
[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
65 SUBDIRS                 = BASE \
66                           $(ALIROOT_DEP) \
67                           $(RCU_DIR) \
68                           $(SAMPLE_DIR) \
69                           $(TPC_DIR) \
70                           $(PHOS_DIR) \
71                           $(TRD_DIR) \
72                           $(FMD_DIR) \
73                           $(MUON_DIR) \
74                           $(COMP_DIR) \
75                           $(TRIGGER_DIR) \
76                           $(ITS_DIR) \
77                           $(EMCAL_DIR) \
78                           $(GLOBAL_DIR) \
79                           doc
80
81 #$(JET_DIR) 
82
83 EXTRA_DIST              = libHLTbase.pkg \
84                           libHLTinterface.pkg \
85                           libHLTsim.pkg \
86                           libHLTrec.pkg \
87                           libHLTshuttle.pkg \
88                           libHLTpendolino.pkg \
89                           libAliHLTHOMER.pkg \
90                           libAliHLTUtil.pkg \
91                           libAliHLTSample.pkg \
92                           libAliHLTPHOS.pkg \
93                           libAliHLTTPC.pkg \
94                           libAliHLTTRD.pkg \
95                           libAliHLTFMD.pkg \
96                           libAliHLTMUON.pkg \
97                           libAliHLTComp.pkg \
98                           libAliHLTTrigger.pkg \
99                           libAliHLTRCU.pkg \
100                           libAliHLTITS.pkg \
101                           libAliHLTEMCAL.pkg \
102                           libAliHLTGlobal.pkg \
103                           libAliHLTJet.pkg \
104                           exa/sample-component1.C \
105                           exa/monitoring.C \
106                           hlt.conf \
107                           .revision
108
109 DIST_SUBDIRS            = $(SUBDIRS)
110
111 # this is a special target to create a stand-alone package from the SampleLib
112 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
113         @tmpdir=/tmp/$(USER)/$@ ; \
114         if test -d $@ ; then \
115           cp -ruv $(top_srcdir)/SampleLib/* $@; \
116           cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
117           cp -uv $(top_srcdir)/acinclude.m4 $@; \
118         else \
119           (test ! -d $$tmpdir || rm $$tmpdir); \
120           echo "creating package in tmp dir $$tmpdir" ; \
121           mkdir -p $$tmpdir && \
122           (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
123           cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
124           cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
125           (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
126           echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
127         fi
128
129 clean-local: 
130         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
131
132 svn-update:
133         @cd $(top_srcdir) ;\
134         revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
135         last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
136         if test "x$$revision" != "x" && test $$last -gt $$revision; then \
137                 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
138                 exit -1; \
139         fi
140
141 .revision: svn-update
142         @cd $(top_srcdir) ;\
143         svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@
144 #
145 # EOF
146 #