aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ac7e938..7b363f5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
.POSIX:
-PREFIX = zig-out
+PREFIX = zig-out
+GIT_SHA = $(shell git rev-parse --short HEAD)
+GIT_SHA != git rev-parse --short HEAD
+VERSION = dev-$(GIT_SHA)
all: install
@@ -11,4 +14,7 @@ test:
zig build test --summary all
freebsd:
- zig build --prefix "$(PREFIX)" --release=small --verbose -Dpath-prefix=/usr/local -Dtarget=x86_64-freebsd
+ zig build --prefix "$(PREFIX)" --release=small --verbose \
+ -Dtarget=x86_64-freebsd \
+ -Dversion=$(VERSION) \
+ -Dpath-prefix=/usr/local