-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
72 lines (50 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
71
72
default: help
.PHONY: help
help:
@echo "Known targets:"
@grep -e '^\w' Makefile | grep ':' | cut -d: -f1 | grep -v default | grep -v targets
@echo
.PHONY: clean
clean:
rm -rf *.box output-*
rm -rf packer_cache
# Debian 9 "stretch"
export DEBIAN_9_VERSION=9.9.0
.PHONY: debian9
debian9: debian$(DEBIAN_9_VERSION)-amd64-virtualbox.box
.PHONY: debian9-test
debian9-test: debian$(DEBIAN_9_VERSION)-amd64-virtualbox.box
./testbox.sh $<
debian$(DEBIAN_9_VERSION)-amd64-virtualbox.box: debian9.json
packer validate $<
packer build -only=virtualbox-iso $<
# Debian 10 "buster"
export DEBIAN_10_VERSION=10.0.0
.PHONY: debian10
debian10: debian$(DEBIAN_10_VERSION)-amd64-virtualbox.box
.PHONY: debian10-test
debian10-test: debian$(DEBIAN_10_VERSION)-amd64-virtualbox.box
./testbox.sh $<
debian$(DEBIAN_10_VERSION)-amd64-virtualbox.box: debian10.json
packer validate $<
packer build -only=virtualbox-iso $<
# Ubuntu Server 16.04
export UBUNTU_1604_VERSION=16.04.5
.PHONY: ubuntu1604
ubuntu1604: ubuntu$(UBUNTU_1604_VERSION)-amd64-virtualbox.box
.PHONY: ubuntu1604-test
ubuntu1604-test: ubuntu$(UBUNTU_1604_VERSION)-amd64-virtualbox.box
./testbox.sh $<
ubuntu$(UBUNTU_1604_VERSION)-amd64-virtualbox.box: ubuntu1604.json
packer validate $<
packer build -only=virtualbox-iso $<
# Ubuntu Server 18.04
export UBUNTU_1804_VERSION=18.04.1.0
.PHONY: ubuntu1804
ubuntu1804: ubuntu$(UBUNTU_1804_VERSION)-amd64-virtualbox.box
.PHONY: ubuntu1804-test
ubuntu1804-test: ubuntu$(UBUNTU_1804_VERSION)-amd64-virtualbox.box
./testbox.sh $<
ubuntu$(UBUNTU_1804_VERSION)-amd64-virtualbox.box: ubuntu1804.json
packer validate $<
packer build -only=virtualbox-iso $<