36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
## make
|
|
## make = make build
|
|
## make deps
|
|
## make build
|
|
## make fast ## < recommended for users
|
|
## make run
|
|
## make examine
|
|
## make time
|
|
|
|
SHELL := /bin/bash ## <= required to use time
|
|
VERBOSE=--verbosity:0
|
|
|
|
build: compute_constrained_bayes.nim
|
|
nim c $(VERBOSE) compute_constrained_bayes.nim
|
|
|
|
fast:
|
|
nim c $(VERBOSE) -d:danger compute_constrained_bayes.nim && echo
|
|
|
|
deps:
|
|
nimble install print@1.0.2
|
|
nimble install https://github.com/CosmicToast/pipe ## backup at github.com/NunoSempere/nim-pipe
|
|
gzip -d ../data/stripped.gz -c > ../data/stripped
|
|
|
|
run: compute_constrained_bayes
|
|
./compute_constrained_bayes $(VERBOSE)
|
|
|
|
## Misc:
|
|
examine: compute_constrained_bayes
|
|
nim c $(VERBOSE) compute_constrained_bayes.nim && time ./compute_constrained_bayes $(VERBOSE) && echo
|
|
nim c $(VERBOSE) -d:release compute_constrained_bayes.nim && time ./compute_constrained_bayes $(VERBOSE) && echo
|
|
nim c $(VERBOSE) -d:danger compute_constrained_bayes.nim && time ./compute_constrained_bayes $(VERBOSE)
|
|
|
|
time:
|
|
time make && echo && time make run
|
|
|