diff options
| author | Bdale Garbee <bdale@gag.com> | 2009-08-18 00:08:30 -0600 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2009-08-18 00:08:30 -0600 |
| commit | e946fa231a719abfdd3f319b8c3345dfc75ee185 (patch) | |
| tree | 7fbcb6f8ac52a0953404622e5f963b0a2cb8a008 | |
| parent | f762a9dfb3b9c81e443a85cd434154598c737ed8 (diff) | |
allow pass-in of VERSION, only call git describe if VERSION not set yet
| -rw-r--r-- | src/Makefile | 4 |
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 |
