summaryrefslogtreecommitdiff
path: root/build-tools/macos-build/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build-tools/macos-build/Makefile')
-rw-r--r--build-tools/macos-build/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/build-tools/macos-build/Makefile b/build-tools/macos-build/Makefile
new file mode 100644
index 0000000..5c1e74c
--- /dev/null
+++ b/build-tools/macos-build/Makefile
@@ -0,0 +1,31 @@
+build_dir ?= build
+branch ?= current
+os ?= buster64
+configureopt ?= --architecture amd64
+makeopt ?= iso
+buildsuffix ?= -amd64.iso
+
+.PHONY: init
+init:
+ mkdir $(build_dir) || true
+
+.PHONY: build
+.ONESHELL:
+build: init
+ @set -e
+ @echo "It's not like I'm building this specially for you or anything!"
+ @./check-macos-build-env
+ OS=$(os) BRANCH=$(branch) CONFIGUREOPT='$(configureopt)' MAKEOPT=$(makeopt) \
+ vagrant up
+ cd $(build_dir); \
+ rsync -Lam --include='*$(buildsuffix)' --exclude='*' vagrant@10.1.1.254:/opt/vyos-build/build/ .
+
+.PHONY: clean
+clean:
+ vagrant destroy -f
+
+.PHONY: purge
+purge: clean
+ rm -rf $(build_dir)
+
+