-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (20 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
JL = julia --project
default: init test
init:
$(JL) -e 'using Pkg; Pkg.activate("lib/OptimalBranchingMIS"); Pkg.develop(path="./lib/OptimalBranchingCore"); Pkg.update()'
$(JL) -e 'using Pkg; Pkg.develop([Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS"]]); Pkg.precompile()'
update:
git pull
$(JL) -e 'using Pkg; Pkg.update(); Pkg.precompile()'
test:
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS"])'
coverage:
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS"]; coverage=true)'
init-docs:
$(JL) -e 'using Pkg; Pkg.activate("docs"); Pkg.develop([Pkg.PackageSpec(path = "."), [Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS"]]...]); Pkg.precompile()'
serve:
$(JL) -e 'using Pkg; Pkg.activate("docs"); using LiveServer; servedocs(;skip_dirs=["docs/src/assets", "docs/src/generated"], literate_dir="examples")'
clean:
rm -rf docs/build
find . -name "*.cov" -type f -print0 | xargs -0 /bin/rm -f
.PHONY: init test