-
Notifications
You must be signed in to change notification settings - Fork 15
/
makefile
29 lines (22 loc) · 924 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
28
29
VERSION_ID := 1.0.0
CHANNEL := alpha
FILES = \
files/box/change_host_name.rb \
files/box/configure_networks.rb \
files/box/Vagrantfile \
files/cloud-config.yml \
files/coreos-setup-environment \
files/install.yml \
files/vagrant
box: coreos.json builds/parallels/coreos-$(CHANNEL).box builds/virtualbox/coreos-$(CHANNEL).box $(FILES)
builds/parallels/coreos-$(CHANNEL).box:
packer build -only=parallels-iso coreos.json
builds/virtualbox/coreos-$(CHANNEL).box:
packer build -only=virtualbox-iso coreos.json
install: builds/parallels/coreos-$(CHANNEL).box builds/virtualbox/coreos-$(CHANNEL).box
vagrant box add --force --provider=parallels --name bassamtabbara/coreos-$(CHANNEL) builds/parallels/coreos-$(CHANNEL).box
vagrant box add --force --provider=virtualbox --name bassamtabbara/coreos-$(CHANNEL) builds/virtualbox/coreos-$(CHANNEL).box
clean:
rm -fr builds
rm -fr packer_cache
.PHONY: box clean