-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 919 Bytes
/
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
.phony : all build dataset test clean
DOCKER_IMAGE=segrcdbjl
all: build
build:
-rm -f Manifest.toml docs/Manifest.toml
docker build -t ${DOCKER_IMAGE} . --build-arg NB_UID=`id -u`
docker compose build
docker compose run --rm shell julia --project=@. -e 'using Pkg; Pkg.instantiate()'
docker compose run --rm shell julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
dataset: build
docker compose run --rm shell julia --project=@. generate_params.jl
docker compose run --rm shell julia --threads auto --project=@. generate_dataset.jl
test: build
docker compose run --rm shell julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
clean:
docker compose down
-find $(CURDIR) -name "*.ipynb" -type f -delete
-find $(CURDIR) -name "*.ipynb_checkpoints" -type d -exec rm -rf "{}" +
-rm -f Manifest.toml docs/Manifest.toml
-rm -rf docs/build
-rm -rf SegRCDB-dataset