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