From: Bdale Garbee Date: Tue, 18 Aug 2009 06:08:30 +0000 (-0600) Subject: allow pass-in of VERSION, only call git describe if VERSION not set yet X-Git-Tag: debian/1.1-1~47 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e946fa231a719abfdd3f319b8c3345dfc75ee185;p=fw%2Faltos allow pass-in of VERSION, only call git describe if VERSION not set yet --- 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