-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 1.08 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
30
31
32
33
34
setup:
julia --project=$(CURDIR) -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"
julia --project=$(CURDIR) -e "using PythonCall"
julia --project=$(CURDIR) -e "using MPI; MPI.install_mpiexecjl(; force=true)"
julia -e 'using Pkg; Pkg.add("IJulia")'
julia -e 'using IJulia; installkernel("Julia WS (4 Threads)", "--threads=4", "--project=$(CURDIR)", specname="julia-4-threads-ws")'
julia -e 'using IJulia; installkernel("Julia WS", "--project=$(CURDIR)")'
html:
jupyter-book build . --builder html
cp $(CURDIR)/static/* $(CURDIR)/_build/html/_static/.
cp -r $(CURDIR)/static $(CURDIR)/_build/html/static
linkcheck:
jupyter-book build . --builder linkcheck
docker-build:
docker build -t julia-hpc-workshop-jupyterbook .
docker-build-nocache:
docker build -t julia-hpc-workshop-jupyterbook --no-cache .
define DOCKER_RUN
docker run --workdir=/io -v $(CURDIR):/io julia-hpc-workshop-jupyterbook
endef
docker-bash:
docker run -it --workdir=/io -v $(CURDIR):/io julia-hpc-workshop-jupyterbook bash
docker-html:
$(DOCKER_RUN) make html
docker-linkcheck:
$(DOCKER_RUN) make linkcheck