2 # Makefile template for the Alice HLT framework and components
99 EXTRA_DIST = libHLTbase.pkg \
100 libHLTinterface.pkg \
104 libHLTpendolino.pkg \
108 libAliHLTSample.pkg \
116 libAliHLTTrigger.pkg \
120 libAliHLTGlobal.pkg \
123 exa/sample-component1.C \
128 DIST_SUBDIRS = $(SUBDIRS)
130 # this is a special target to create a stand-alone package from the SampleLib
131 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
132 @tmpdir=/tmp/$(USER)/$@ ; \
133 if test -d $@ ; then \
134 cp -ruv $(top_srcdir)/SampleLib/* $@; \
135 cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
136 cp -uv $(top_srcdir)/acinclude.m4 $@; \
138 (test ! -d $$tmpdir || rm $$tmpdir); \
139 echo "creating package in tmp dir $$tmpdir" ; \
140 mkdir -p $$tmpdir && \
141 (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
142 cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
143 cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
144 (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
145 echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
149 (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
153 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
154 last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
155 if test "x$$revision" != "x" && test $$last -gt $$revision; then \
156 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
160 .revision: svn-update
162 svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@