From 8811218bdd8b10a728a15e055ae4bb092be268af Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 19 Feb 2009 22:49:38 +0000 Subject: Fix SVN revision reporting so that it doesn't relink on every make invocation. (bzr r7331) --- src/Makefile_insert | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/Makefile_insert') diff --git a/src/Makefile_insert b/src/Makefile_insert index 7a43a59c5..e654ca136 100644 --- a/src/Makefile_insert +++ b/src/Makefile_insert @@ -72,7 +72,6 @@ libinkpre_a_SOURCES = \ icon-size.h \ id-clash.cpp id-clash.h \ ige-mac-menu.h ige-mac-menu.c \ - inkscape-stock.cpp inkscape-stock.h\ inkscape.cpp inkscape.h inkscape-private.h \ interface.cpp interface.h \ isinf.h \ @@ -313,10 +312,13 @@ inkview_LDADD = $(all_libs) libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h -# Hack: make inkscape-version.cpp a phony target. -# Create the version file every time "make" is invoked. Overwrite it only -# if it changes. Watch the backslashes! -inkscape-version.cpp: +if USE_SVN_VERSION +inkscape_version_deps = $(top_srcdir)/.svn/entries +endif + +# If this is an SVN snapshot build, regenerate this file every time +# someone updates the SVN working directory. +inkscape-version.cpp: $(inkscape_version_deps) VER_PREFIX="$(VERSION)"; \ if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \ VER_SVNREV=" r`svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \ @@ -334,7 +336,6 @@ inkscape-version.cpp: mv inkscape-version.new.cpp inkscape-version.cpp; \ fi; \ echo $$VERSION -.PHONY: inkscape-version.cpp # ###################### # ### CxxTest stuff #### -- cgit v1.2.3