tweak nim makefile

This commit is contained in:
NunoSempere 2023-05-21 01:34:02 -04:00
parent 1ebc3ce7b9
commit 3050f7adee

View File

@ -1,11 +1,11 @@
SHELL := /bin/bash
SHELL := /bin/bash ## <= required to use time
VERBOSE=--verbosity:0
build: samples.nim
nim c --verbosity:0 samples.nim
nim c $(VERBOSE) samples.nim
run: samples
./samples --verbosity:0
./samples $(VERBOSE)
examine: samples
# nim c --verbosity:0 --opt:speed -d:release -d:danger --checks:off samples.nim && time ./samples --verbosity:0 --checks:off
nim c -d:release samples.nim && time ./samples
nim c $(VERBOSE) -d:release samples.nim && time ./samples $(VERBOSE)