master/Makefile
branchstable-1.0
changeset 1617 9f83a343ae75
parent 191 ca805255a935
child 197 b9a6e2c22745
--- a/master/Makefile	Thu Apr 20 13:38:48 2006 +0000
+++ b/master/Makefile	Thu Apr 20 14:38:41 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)
 
 #------------------------------------------------------------------------------