]>
Commit | Line | Data |
---|---|---|
b521659f | 1 | # $Id$ |
2 | # Makefile template for the Alice HLT framework and components | |
3 | ||
4 | ||
7233bc62 | 5 | if HAVE_ALIROOT |
6 | ALIROOT_DEP=sim \ | |
7 | rec \ | |
8 | shuttle | |
9 | endif | |
10 | ||
b521659f | 11 | if EN_HLT_SAMPLE |
12 | SAMPLE_DIR=SampleLib | |
13 | endif | |
14 | ||
15 | if EN_HLT_TPC | |
3daf4fbc | 16 | TPC_DIR=TPCLib |
b521659f | 17 | endif |
18 | ||
5e3820e2 | 19 | if EN_HLT_RCU |
20 | RCU_DIR=RCU | |
21 | endif | |
22 | ||
c160eda8 | 23 | if EN_HLT_PHOS |
24 | PHOS_DIR=PHOS | |
25 | endif | |
26 | ||
0f51f5b8 | 27 | if EN_HLT_TRD |
28 | TRD_DIR=TRD | |
29 | endif | |
30 | ||
5c561c5b | 31 | if EN_HLT_MUON |
32 | MUON_DIR=MUON | |
33 | endif | |
34 | ||
e89e6b23 | 35 | if EN_HLT_COMP |
36 | COMP_DIR=comp | |
37 | endif | |
38 | ||
d6e2c707 | 39 | if EN_HLT_TRIGGER |
3daf4fbc | 40 | TRIGGER_DIR=trigger |
d6e2c707 | 41 | endif |
42 | ||
43 | if EN_HLT_ITS | |
44 | ITS_DIR=ITS | |
45 | endif | |
3daf4fbc | 46 | |
b521659f | 47 | SUBDIRS = BASE \ |
7233bc62 | 48 | $(ALIROOT_DEP) \ |
c3800c65 | 49 | $(RCU_DIR) \ |
b521659f | 50 | $(SAMPLE_DIR) \ |
51 | $(TPC_DIR) \ | |
c160eda8 | 52 | $(PHOS_DIR) \ |
0f51f5b8 | 53 | $(TRD_DIR) \ |
5c561c5b | 54 | $(MUON_DIR) \ |
e89e6b23 | 55 | $(COMP_DIR) \ |
3daf4fbc | 56 | $(TRIGGER_DIR) \ |
d6e2c707 | 57 | $(ITS_DIR) \ |
b521659f | 58 | doc |
59 | ||
2d7ff710 | 60 | EXTRA_DIST = libHLTbase.pkg \ |
d098ebd4 | 61 | libHLTinterface.pkg \ |
4cbaf07b | 62 | libHLTsim.pkg \ |
63 | libHLTrec.pkg \ | |
8f471af0 | 64 | libHLTshuttle.pkg \ |
4cbaf07b | 65 | libAliHLTHOMER.pkg \ |
242bb794 | 66 | libAliHLTUtil.pkg \ |
2d7ff710 | 67 | libAliHLTSample.pkg \ |
3cde846d | 68 | libAliHLTPHOS.pkg \ |
dfaa582a | 69 | libAliHLTTPC.pkg \ |
0f51f5b8 | 70 | libAliHLTTRD.pkg \ |
5c561c5b | 71 | libAliHLTMUON.pkg \ |
e89e6b23 | 72 | libAliHLTComp.pkg \ |
3daf4fbc | 73 | libAliHLTTrigger.pkg \ |
8f471af0 | 74 | libAliHLTRCU.pkg \ |
75 | libAliHLTITS.pkg \ | |
76 | exa/sample-component1.C \ | |
77 | exa/monitoring.C \ | |
7233bc62 | 78 | hlt.conf \ |
79 | .revision | |
2d7ff710 | 80 | |
b521659f | 81 | DIST_SUBDIRS = $(SUBDIRS) |
82 | ||
242bb794 | 83 | # this is a special target to create a stand-alone package from the SampleLib |
2d7ff710 | 84 | SampleLibPkg: Makefile $(top_srcdir)/SampleLib/* |
85 | @tmpdir=/tmp/$(USER)/$@ ; \ | |
86 | if test -d $@ ; then \ | |
87 | cp -ruv $(top_srcdir)/SampleLib/* $@; \ | |
88 | cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \ | |
89 | cp -uv $(top_srcdir)/acinclude.m4 $@; \ | |
90 | else \ | |
91 | (test ! -d $$tmpdir || rm $$tmpdir); \ | |
92 | echo "creating package in tmp dir $$tmpdir" ; \ | |
93 | mkdir -p $$tmpdir && \ | |
94 | (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \ | |
95 | cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \ | |
96 | cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \ | |
97 | (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \ | |
98 | echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \ | |
99 | fi | |
100 | ||
101 | clean-local: | |
102 | (test ! -d SampleLibPkg || rm -rf SampleLibPkg) | |
103 | ||
7233bc62 | 104 | svn-update: |
105 | @cd $(top_srcdir) ;\ | |
106 | revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\ | |
107 | last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\ | |
108 | if test "x$$revision" != "x" && test $$last -gt $$revision; then \ | |
109 | echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \ | |
110 | exit -1; \ | |
111 | fi | |
112 | ||
113 | .revision: svn-update | |
114 | @cd $(top_srcdir) ;\ | |
115 | svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@ | |
b521659f | 116 | # |
117 | # EOF | |
118 | # |