]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/Makefile.am
Cleanup of documentation and code.
[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 endif
10
11 if EN_HLT_SAMPLE
12 SAMPLE_DIR=SampleLib    
13 endif
14
15 if EN_HLT_TPC
16 TPC_DIR=TPCLib
17 endif
18
19 if EN_HLT_RCU
20 RCU_DIR=RCU
21 endif
22
23 if EN_HLT_PHOS
24 PHOS_DIR=PHOS
25 endif
26
27 if EN_HLT_TRD
28 TRD_DIR=TRD
29 endif
30
31 if EN_HLT_MUON
32 MUON_DIR=MUON
33 endif
34
35 if EN_HLT_COMP
36 COMP_DIR=comp
37 endif
38
39 if EN_HLT_TRIGGER
40 TRIGGER_DIR=trigger
41 endif
42
43 if EN_HLT_ITS
44 ITS_DIR=ITS
45 endif
46
47 SUBDIRS                 = BASE \
48                           $(ALIROOT_DEP) \
49                           $(RCU_DIR) \
50                           $(SAMPLE_DIR) \
51                           $(TPC_DIR) \
52                           $(PHOS_DIR) \
53                           $(TRD_DIR) \
54                           $(MUON_DIR) \
55                           $(COMP_DIR) \
56                           $(TRIGGER_DIR) \
57                           $(ITS_DIR) \
58                           doc
59
60 EXTRA_DIST              = libHLTbase.pkg \
61                           libHLTinterface.pkg \
62                           libHLTsim.pkg \
63                           libHLTrec.pkg \
64                           libHLTshuttle.pkg \
65                           libAliHLTHOMER.pkg \
66                           libAliHLTUtil.pkg \
67                           libAliHLTSample.pkg \
68                           libAliHLTPHOS.pkg \
69                           libAliHLTTPC.pkg \
70                           libAliHLTTRD.pkg \
71                           libAliHLTMUON.pkg \
72                           libAliHLTComp.pkg \
73                           libAliHLTTrigger.pkg \
74                           libAliHLTRCU.pkg \
75                           libAliHLTITS.pkg \
76                           exa/sample-component1.C \
77                           exa/monitoring.C \
78                           hlt.conf \
79                           .revision
80
81 DIST_SUBDIRS            = $(SUBDIRS)
82
83 # this is a special target to create a stand-alone package from the SampleLib
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
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' > $@
116 #
117 # EOF
118 #