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