summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-01-01 15:49:48 +0100
committerYorhel <git@yorhel.nl>2022-01-01 15:49:50 +0100
commitba26e6621bb8336ae370277c352494daee27f10d (patch)
tree3e64b5617c430a68b10dc6f4f404d8994d87bc17
parent2b23951e4f70d573a49dd7f44f3b730921b7d5b1 (diff)
Makefile: Add ZIG_FLAGS variable
Fixes #185
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0761fb7..a226488 100644
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,12 @@
PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
MANDIR ?= ${PREFIX}/share/man/man1
+ZIG_FLAGS ?= -Drelease-fast
NCDU_VERSION=$(shell grep 'program_version = "' src/main.zig | sed -e 's/^.*"\(.\+\)".*$$/\1/')
release:
- zig build -Drelease-fast
+ zig build ${ZIG_FLAGS}
debug:
zig build