2 # Makefile template for the Alice HLT framework and components
91 EXTRA_DIST = libHLTbase.pkg \
100 libAliHLTSample.pkg \
107 libAliHLTTrigger.pkg \
111 libAliHLTGlobal.pkg \
113 exa/sample-component1.C \
118 DIST_SUBDIRS = $(SUBDIRS)
120 # this is a special target to create a stand-alone package from the SampleLib
121 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
122 @tmpdir=/tmp/$(USER)/$@ ; \
123 if test -d $@ ; then \
124 cp -ruv $(top_srcdir)/SampleLib/* $@; \
125 cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
126 cp -uv $(top_srcdir)/acinclude.m4 $@; \
128 (test ! -d $$tmpdir || rm $$tmpdir); \
129 echo "creating package in tmp dir $$tmpdir" ; \
130 mkdir -p $$tmpdir && \
131 (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
132 cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
133 cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
134 (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
135 echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
139 (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
143 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
144 last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
145 if test "x$$revision" != "x" && test $$last -gt $$revision; then \
146 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
150 .revision: svn-update
152 svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@