master/Makefile
changeset 196 f8a1e9f364a3
parent 191 ca805255a935
child 197 b9a6e2c22745
--- a/master/Makefile	Thu Apr 20 13:31:31 2006 +0000
+++ b/master/Makefile	Thu Apr 20 14:34:58 2006 +0000
@@ -18,7 +18,9 @@
 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
 			domain.o mailbox.o canopen.o ethernet.o
 
-EXTRA_CFLAGS := -DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
+REV := $(shell svnversion $(src) 2>/dev/null)
+
+EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
 
 #------------------------------------------------------------------------------