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