2 # Makefile template for the Alice HLT framework and components
61 EXTRA_DIST = libHLTbase.pkg \
75 libAliHLTTrigger.pkg \
78 exa/sample-component1.C \
83 DIST_SUBDIRS = $(SUBDIRS)
85 # this is a special target to create a stand-alone package from the SampleLib
86 SampleLibPkg: Makefile $(top_srcdir)/SampleLib/*
87 @tmpdir=/tmp/$(USER)/$@ ; \
88 if test -d $@ ; then \
89 cp -ruv $(top_srcdir)/SampleLib/* $@; \
90 cp -uv $(top_srcdir)/libAliHLTSample.pkg $@; \
91 cp -uv $(top_srcdir)/acinclude.m4 $@; \
93 (test ! -d $$tmpdir || rm $$tmpdir); \
94 echo "creating package in tmp dir $$tmpdir" ; \
95 mkdir -p $$tmpdir && \
96 (cp -r $(top_srcdir)/SampleLib/* $$tmpdir ; \
97 cp -uv $(top_srcdir)/libAliHLTSample.pkg $$tmpdir ; \
98 cp -uv $(top_srcdir)/acinclude.m4 $$tmpdir; \
99 (echo 'running autoreconf -f -i' ;cd $$tmpdir ; autoreconf -f -i) ; \
100 echo moving $$tmpdir to `pwd`; mv $$tmpdir . ) \
104 (test ! -d SampleLibPkg || rm -rf SampleLibPkg)
108 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
109 last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
110 if test "x$$revision" != "x" && test $$last -gt $$revision; then \
111 echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
115 .revision: svn-update
117 svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@