-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
61 lines (53 loc) · 1.39 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
include Makefile.conf
check_folder:
@if [ -d "build" ]; then echo "[!] Found previous build, use make clean to delete old artifacts" && exit 1; fi
clean:
@echo "[*] Using sudo to delete old build files"
sudo rm -rf build
build_base:
@echo "[*] Building base image"
docker build -q -t base -f docker/base.Dockerfile .
njs: check_folder build_base
@echo "[*] Building njs images"
docker build -q \
-t njs \
--build-arg ver=$(NJS_VERSION) \
-f docker/njs.Dockerfile .
docker run \
--rm \
-v `pwd`:/home/build/fluff \
njs \
./fluff/docker/scripts/build_njs.sh
duktape: check_folder build_base
@echo "[*] Building duktape images"
docker build -q \
-t duktape \
--build-arg url=$(DUKTAPE_URL) \
-f docker/duktape.Dockerfile .
docker run \
--rm \
-v `pwd`:/home/build/fluff \
duktape \
./fluff/docker/scripts/build_duktape.sh
jerryscript: check_folder build_base
@echo "[*] Building jerryscript images"
docker build -q \
-t jerryscript \
--build-arg ver=$(JERRYSCRIPT_VERSION) \
-f docker/jerryscript.Dockerfile .
docker run \
--rm \
-v `pwd`:/home/build/fluff \
jerryscript \
./fluff/docker/scripts/build_jerryscript.sh
v8: check_folder build_base
@echo "[*] Building v8 images"
docker build -q \
-t v8 \
--build-arg ver=$(V8_VERSION) \
-f docker/v8.Dockerfile .
docker run \
--rm \
-v `pwd`:/home/build/fluff \
v8 \
./fluff/docker/scripts/build_v8.sh