]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/Makefile.am
37c257942a4e7fe4878046e5d6088972fc74d691
[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_MUON
33 MUON_DIR=MUON
34 endif
35
36 if EN_HLT_COMP
37 COMP_DIR=comp
38 endif
39
40 if EN_HLT_TRIGGER
41 TRIGGER_DIR=trigger
42 endif
43
44 if EN_HLT_ITS
45 ITS_DIR=ITS
46 endif
47
48 SUBDIRS                 = BASE \
49                           $(ALIROOT_DEP) \
50                           $(RCU_DIR) \
51                           $(SAMPLE_DIR) \
52                           $(TPC_DIR) \
53                           $(PHOS_DIR) \
54                           $(TRD_DIR) \
55                           $(MUON_DIR) \
56                           $(COMP_DIR) \
57                           $(TRIGGER_DIR) \
58                           $(ITS_DIR) \
59                           doc
60
61 EXTRA_DIST              = libHLTbase.pkg \
62                           libHLTinterface.pkg \
63                           libHLTsim.pkg \
64                           libHLTrec.pkg \
65                           libHLTshuttle.pkg \
66                           libHLTpendolino.pkg \
67                           libAliHLTHOMER.pkg \
68                           libAliHLTUtil.pkg \
69                           libAliHLTSample.pkg \
70                           libAliHLTPHOS.pkg \
71                           libAliHLTTPC.pkg \
72                           libAliHLTTRD.pkg \
73                           libAliHLTMUON.pkg \
74                           libAliHLTComp.pkg \
75                           libAliHLTTrigger.pkg \
76                           libAliHLTRCU.pkg \
77                           libAliHLTITS.pkg \
78                           exa/sample-component1.C \
79                           exa/monitoring.C \
80                           hlt.conf \
81                           .revision
82
83 DIST_SUBDIRS            = $(SUBDIRS)
84
85 # this is a special target to create a stand-alone package from the SampleLib
86 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
87         @tmpdir=/tmp/$(USER)/$@ ; \
88         if test -d $@ ; then \
89           cp -ruv $(top_srcdir)/SampleLib/* $@; \
90           cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
91           cp -uv $(top_srcdir)/acinclude.m4 $@; \
92         else \
93           (test ! -d $$tmpdir || rm $$tmpdir); \
94           echo "creating package in tmp dir $$tmpdir" ; \
95           mkdir -p $$tmpdir && \
96           (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
97           cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
98           cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
99           (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
100           echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
101         fi
102
103 clean-local: 
104         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
105
106 svn-update:
107         @cd $(top_srcdir) ;\
108         revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
109         last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
110         if test "x$$revision" != "x" && test $$last -gt $$revision; then \
111                 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
112                 exit -1; \
113         fi
114
115 .revision: svn-update
116         @cd $(top_srcdir) ;\
117         svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@
118 #
119 # EOF
120 #