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