-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (36 loc) · 1.2 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
image: calendars cuesheet.js elevationprofile.js
docker build -t glynternet/glynternet:latest .
serve: image
docker run --rm \
--volume="${PWD}:/srv/jekyll:Z" \
--publish [::1]:4000:4000 \
-it glynternet/glynternet:latest \
jekyll serve
sh:
docker run --rm \
--volume="${PWD}:/srv/jekyll:Z" \
-it glynternet/glynternet:latest \
bash
# phony because elm-live produces this and I can't work out how to produce to another path and still work in dev mode.
.PHONY: cuesheet.js
cuesheet.js:
docker run --rm \
--volume="${PWD}:/elmapp:Z" \
glynternet/elm:latest \
sh -c "cd elmapp/elm/cuesheet && elm make --optimize ./src/Main.elm --output=../../data/$@"
# phony because elm-live produces this and I can't work out how to produce to another path and still work in dev mode.
.PHONY: elevationprofile.js
elevationprofile.js:
docker run --rm \
--volume="${PWD}:/elmapp:Z" \
glynternet/elm:latest \
sh -c "cd elmapp/elm/elevationprofile && elm make --optimize ./src/Main.elm --output=../../data/$@"
elm-sh:
docker run --rm -it \
--volume="${PWD}:/elmapp:Z" \
glynternet/elm:latest \
sh
elm-docker-image:
docker build -f elm.Dockerfile -t glynternet/elm:latest .
calendars:
${MAKE} -C _calendar