From e946fa231a719abfdd3f319b8c3345dfc75ee185 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 18 Aug 2009 00:08:30 -0600 Subject: [PATCH] allow pass-in of VERSION, only call git describe if VERSION not set yet --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.2