aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortsne <tsne.dev@outlook.com>2026-05-13 11:33:08 +0200
committertsne <tsne.dev@outlook.com>2026-05-22 08:25:27 +0200
commitc5b88c66ca8956df26ed87a7397862009e18cfc7 (patch)
tree5a862bdacdeaa7fff73bf1bb2a423eee38f9b6e5 /Makefile
parentinitial commit (diff)
downloadporteur-c5b88c66ca8956df26ed87a7397862009e18cfc7.tar.gz
upgrade to zig 0.16
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