bugfix, added missing header file
[u/mrichter/AliRoot.git] / HLT / Makefile.am
index 3fa8279..ee1cfa6 100644 (file)
@@ -10,14 +10,43 @@ if EN_HLT_TPC
 TPC_DIR=TPCLib 
 endif
 
+if EN_HLT_PHOS
+PHOS_DIR=PHOS
+endif
+
 SUBDIRS                = BASE \
                          $(SAMPLE_DIR) \
                          $(TPC_DIR) \
-                         src \
+                         $(PHOS_DIR) \
                          doc
 
+EXTRA_DIST             = libHLTbase.pkg \
+                         libAliHLTSample.pkg \
+                         libAliHLTPHOS.pkg \
+                         hlt.conf
+
 DIST_SUBDIRS           = $(SUBDIRS)
 
+SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
+       @tmpdir=/tmp/$(USER)/$@ ; \
+       if test -d $@ ; then \
+         cp -ruv $(top_srcdir)/SampleLib/* $@; \
+         cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
+         cp -uv $(top_srcdir)/acinclude.m4 $@; \
+       else \
+         (test ! -d $$tmpdir || rm $$tmpdir); \
+         echo "creating package in tmp dir $$tmpdir" ; \
+         mkdir -p $$tmpdir && \
+         (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
+         cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
+         cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
+         (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
+         echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
+       fi
+
+clean-local: 
+       (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
+
 #
 # EOF
 #