43203a40a1dcc4328226c0ecc6a0c9de08b51368
[u/mrichter/AliRoot.git] / HLT / Makefile.am
1 # $Id$
2 # Makefile template for the Alice HLT framework and components
3
4
5 if EN_HLT_SAMPLE
6 SAMPLE_DIR=SampleLib    
7 endif
8
9 if EN_HLT_TPC
10 TPC_DIR=TPCLib  
11 endif
12
13 if EN_HLT_PHOS
14 PHOS_DIR=PHOS
15 endif
16
17 if EN_HLT_TRD
18 TRD_DIR=TRD
19 endif
20
21 if EN_HLT_MUON
22 MUON_DIR=MUON
23 endif
24
25 SUBDIRS                 = BASE \
26                           $(SAMPLE_DIR) \
27                           $(TPC_DIR) \
28                           $(PHOS_DIR) \
29                           $(TRD_DIR) \
30                           $(MUON_DIR) \
31                           doc
32
33 EXTRA_DIST              = libHLTbase.pkg \
34                           libHLTinterface.pkg \
35                           libAliHLTUtil.pkg \
36                           libAliHLTSample.pkg \
37                           libAliHLTPHOS.pkg \
38                           libAliHLTTPC.pkg \
39                           libAliHLTTRD.pkg \
40                           libAliHLTMUON.pkg \
41                           src/AliHLTReconstructor.h \
42                           src/AliHLTReconstructor.cxx \
43                           hlt.conf
44
45 DIST_SUBDIRS            = $(SUBDIRS)
46
47 # this is a special target to create a stand-alone package from the SampleLib
48 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
49         @tmpdir=/tmp/$(USER)/$@ ; \
50         if test -d $@ ; then \
51           cp -ruv $(top_srcdir)/SampleLib/* $@; \
52           cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
53           cp -uv $(top_srcdir)/acinclude.m4 $@; \
54         else \
55           (test ! -d $$tmpdir || rm $$tmpdir); \
56           echo "creating package in tmp dir $$tmpdir" ; \
57           mkdir -p $$tmpdir && \
58           (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
59           cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
60           cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
61           (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
62           echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
63         fi
64
65 clean-local: 
66         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
67
68 #
69 # EOF
70 #