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