forked from ReactiveBayes/GraphPPL.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (14 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
scripts_init:
julia --startup-file=no --project=scripts/ -e 'using Pkg; Pkg.instantiate(); Pkg.update(); Pkg.precompile();'
project_init:
julia --startup-file=no --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.update(); Pkg.precompile();'
lint: scripts_init ## Code formating check
julia --startup-file=no --project=scripts/ scripts/format.jl
format: scripts_init ## Code formating run
julia --startup-file=no --project=scripts/ scripts/format.jl --overwrite
bench: ## Run benchmark, use `make bench branch=...` to test against a specific branch
julia --startup-file=no --project=scripts/ scripts/bench.jl $(branch)
doc_init:
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
docs: doc_init ## Generate documentation
julia --project=docs/ docs/make.jl