summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 45d34ea4..5a8afe0b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,7 +4,9 @@
#
CC=sdcc
-VERSION=$(shell cat version)
+ifndef VERSION
+VERSION=$(shell git describe)
+endif
CFLAGS=--model-small --debug --opt-code-speed