diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2009-02-19 22:49:38 +0000 |
|---|---|---|
| committer | tweenk <tweenk@users.sourceforge.net> | 2009-02-19 22:49:38 +0000 |
| commit | 8811218bdd8b10a728a15e055ae4bb092be268af (patch) | |
| tree | d9b92be4cd10373850de94d486a1583b1fbc230c /src/Makefile_insert | |
| parent | Remove superfluous FreehandShape LPE (diff) | |
| download | inkscape-8811218bdd8b10a728a15e055ae4bb092be268af.tar.gz inkscape-8811218bdd8b10a728a15e055ae4bb092be268af.zip | |
Fix SVN revision reporting so that it doesn't relink on every make
invocation.
(bzr r7331)
Diffstat (limited to 'src/Makefile_insert')
| -rw-r--r-- | src/Makefile_insert | 13 |
1 files changed, 7 insertions, 6 deletions
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 #### |
