diff --git a/src/Makefile_insert b/src/Makefile_insert
index 6eba8897d81c53319af5c3e00030fbf549b30d73..43a6295d65421eb01c69e9688d7722cc5da10a89 100644 (file)
--- a/src/Makefile_insert
+++ b/src/Makefile_insert
inkview_SOURCES = inkview.cpp $(win32_sources)
inkview_LDADD = $(all_libs)
-libinkversion_a_SOURCES = inkscape-version.cpp
+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:
VER_PREFIX="$(VERSION)"; \
- if test -x "$(srcdir)/.svn"; then \
+ if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \
VER_SVNREV=" r`svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \
if test ! -z "`svn status -q $(srcdir)`"; then \
VER_CUSTOM=" custom"; \