2014-03-08 02:34:09 +00:00
|
|
|
UBUNTU_BOXES= precise quantal raring saucy trusty
|
|
|
|
TODAY=$(shell date -u +"%Y-%m-%d")
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
all: $(UBUNTU_BOXES)
|
|
|
|
|
|
|
|
$(UBUNTU_BOXES): CONTAINER = "vagrant-lxc-base-${@}-amd64-${TODAY}"
|
2014-03-09 06:55:10 +00:00
|
|
|
$(UBUNTU_BOXES): PACKAGE = "output/vagrant-lxc-${@}-amd64-${TODAY}.box"
|
2014-03-08 02:34:09 +00:00
|
|
|
$(UBUNTU_BOXES):
|
|
|
|
@sudo -E ./mk-ubuntu.sh $(@) amd64 $(CONTAINER) $(PACKAGE)
|
2014-03-09 07:18:10 +00:00
|
|
|
@sudo chmod +rw $(PACKAGE)
|
2014-03-09 23:24:09 +00:00
|
|
|
@sudo chown ${USER}: $(PACKAGE)
|
2014-03-08 02:34:09 +00:00
|
|
|
|
|
|
|
clean:
|
2014-03-09 22:36:48 +00:00
|
|
|
@for r in $(UBUNTU_BOXES); do \
|
|
|
|
sudo -E ./clean.sh $${r}\
|
|
|
|
vagrant-lxc-base-$${r}-amd64-${TODAY} \
|
|
|
|
output/vagrant-lxc-$${r}-amd64-${TODAY}.box; \
|
|
|
|
done
|