summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f0af3ab3..f4a9ef29 100644
--- a/Makefile
+++ b/Makefile
@@ -82,12 +82,24 @@ clearfog: clean prepare
azure: clean prepare
@set -e
@echo "It's not like I'm building this specially for you or anything!"
- cp tools/cloud-init/99-walinuxagent.chroot build/config/hooks/
- cp tools/cloud-init/vyos-azure.list.chroot build/config/package-lists/
- cp -f tools/cloud-init/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
+ cp tools/cloud-init/azure/99-walinuxagent.chroot build/config/hooks/
+ cp tools/cloud-init/azure/vyos-azure.list.chroot build/config/package-lists/
+ cp -f tools/cloud-init/azure/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
cd $(build_dir)
@../scripts/build-azure-image
+.PHONY: GCE
+.ONESHELL:
+GCE: clean prepare
+ @set -e
+ @echo "It's not like I'm building this specially for you or anything!"
+ mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d
+ cp tools/cloud-init/GCE/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/
+ cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/
+ cp -f tools/cloud-init/GCE/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
+ cd $(build_dir)
+ @../scripts/build-GCE-image
+
.PHONY: clean
.ONESHELL:
clean:
@@ -101,6 +113,8 @@ clean:
rm -f *.img
rm -f *.xz
rm -f *.vhd
+ rm -f *.raw
+ rm -f *.tar.gz
.PHONY: purge
purge: