aboutsummaryrefslogtreecommitdiff
path: root/Recipe
diff options
context:
space:
mode:
Diffstat (limited to 'Recipe')
-rw-r--r--Recipe4
1 files changed, 2 insertions, 2 deletions
diff --git a/Recipe b/Recipe
index c79f9a9..6b10194 100644
--- a/Recipe
+++ b/Recipe
@@ -104,7 +104,7 @@ version.o: FORCE;
FORCE:
if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \
- elif test -z "$(VER)" && svnversion . >&/dev/null; then \
+ elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \
else \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \
@@ -119,7 +119,7 @@ version.o: FORCE;
FORCE:
if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \
- elif test -z "$(VER)" && svnversion . >&/dev/null; then \
+ elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \
else \
$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \