+svn-update:
+ @cd $(top_srcdir) ;\
+ revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n'` ;\
+ last=`svn info 2> /dev/null | grep "Last Changed Rev:" | cut -d ' ' -f 4 | cut -d '/' -f 4 | tr -d '\n'` ;\
+ if test "x$$revision" != "x" && test $$last -gt $$revision; then \
+ echo "The SVN copy is not up-to-date (revision $$revision - last update $$last), please 'svn update'"; \
+ exit -1; \
+ fi
+
+.revision: svn-update
+ @cd $(top_srcdir) ;\
+ svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | tr -d '\n' > $@