Fixed a bug in reading the revision number.
[selector.git] / Makefile
index d80b4cd..d950a09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ MAN_PATH = /usr/share/man/man1
 
 LDFLAGS=-lcurses
 
-REVISION_NUMBER=$(shell git log | grep ^commit | wc -l)
+REVISION_NUMBER=$(shell cat REVISION_NUMBER)
 
 ifeq ($(DEBUG),yes)
   OPTIMIZE_FLAG = -ggdb3 -DDEBUG