Makefile

changeset 32
51d6e45a7592
parent 28
72a98cbcb9f1
child 34
fa9bda32de17
--- a/Makefile	Mon Feb 13 19:10:00 2012 +0100
+++ b/Makefile	Tue Aug 28 16:44:32 2012 +0200
@@ -37,6 +37,8 @@
 CONF = gcc
 #endif
 
+VERSION_PREFIX=1.0.
+
 include ${CONF}.mk
 
 .PHONY: setup run-compile teardown
@@ -54,7 +56,7 @@
 	mkdir -p ${BUILDDIR}
 	rm -f ${BUILDDIR}cline.o
 	mv cline.h cline.src
-	cat cline.src | sed "s/VERSION.*/VERSION=\"$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h
+	cat cline.src | sed "s/VERSION.*/VERSION=\"${VERSION_PREFIX}$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h
 	
 teardown:
 	rm -f cline.h

mercurial