compute-constrained-bayes/src/makefile

36 lines
1.0 KiB
Makefile
Raw Normal View History

## make
## make = make build
## make deps
## make build
## make fast ## < recommended for users
## make run
## make examine
## make time
2023-05-23 22:29:41 +00:00
SHELL := /bin/bash ## <= required to use time
VERBOSE=--verbosity:0
build: compute_constrained_bayes.nim
nim c $(VERBOSE) compute_constrained_bayes.nim
2023-05-23 22:29:41 +00:00
fast:
nim c $(VERBOSE) -d:danger compute_constrained_bayes.nim && echo
deps:
nimble install print@1.0.2
2023-05-25 01:07:58 +00:00
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)
2023-05-23 22:29:41 +00:00
## 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)
2023-05-23 22:29:41 +00:00
time:
time make && echo && time make run