-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 1.18 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
35
36
37
38
39
40
41
42
43
44
.PHONY : all build page slideshow docs app test clean
DOCKER_IMAGE=lampjl
all: build
config/secrets.jl:
julia --project=@. -e 'using Genie; Genie.Generator.write_secrets_file()'
build: config/secrets.jl
docker build -t ${DOCKER_IMAGE} . --build-arg NB_UID=`id -u`
docker-compose build
slideshow:
julia --project=slideshow -e 'import Pkg; Pkg.instantiate()'
julia --project=slideshow slideshow/make.jl
mkdir -p slideshow/lamp/build
mv slideshow/lamp/src/index.html slideshow/lamp/build/index.html
cp -r slideshow/art/src slideshow/art/build
page: slideshow
julia --project=page -e 'import Pkg; Pkg.instantiate()'
julia --project=page page/make.jl
mkdir -p page/__site/slideshow/lamp/build
mkdir -p page/__site/slideshow/art/build
cp -r slideshow/lamp/build page/__site/slideshow/lamp
cp -r slideshow/art/build page/__site/slideshow/art
docs: page
julia --project=page -e 'using LiveServer; serve(dir="page/__site")'
app: build
docker-compose up app
test: build
docker-compose run --rm shell julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
clean:
docker-compose down
-rm -rf config
-rm -rf node_modules package-lock.json pages/__site
-rm -rf log
-rm -rf slideshow/*/build