Makefile: Add ZIG_FLAGS variable

Fixes #185
This commit is contained in:
Yorhel 2022-01-01 15:49:48 +01:00
parent 2b23951e4f
commit ba26e6621b

View file

@ -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