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