HLT sample applications
[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 SUBDIRS                 = BASE \
22                           $(SAMPLE_DIR) \
23                           $(TPC_DIR) \
24                           $(PHOS_DIR) \
25                           $(TRD_DIR) \
26                           doc
27
28 EXTRA_DIST              = libHLTbase.pkg \
29                           libAliHLTUtil.pkg \
30                           libAliHLTSample.pkg \
31                           libAliHLTPHOS.pkg \
32                           libAliHLTTPC.pkg \
33                           libAliHLTTRD.pkg \
34                           src/AliHLTReconstructor.h \
35                           hlt.conf
36
37 DIST_SUBDIRS            = $(SUBDIRS)
38
39 # this is a special target to create a stand-alone package from the SampleLib
40 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
41         @tmpdir=/tmp/$(USER)/$@ ; \
42         if test -d $@ ; then \
43           cp -ruv $(top_srcdir)/SampleLib/* $@; \
44           cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
45           cp -uv $(top_srcdir)/acinclude.m4 $@; \
46         else \
47           (test ! -d $$tmpdir || rm $$tmpdir); \
48           echo "creating package in tmp dir $$tmpdir" ; \
49           mkdir -p $$tmpdir && \
50           (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
51           cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
52           cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
53           (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
54           echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
55         fi
56
57 clean-local: 
58         (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
59
60 #
61 # EOF
62 #