diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-04-24 21:49:06 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 21:49:06 +0700 |
commit | 2ca0f5c34288bf7f7639a69b3f559f9c60b3879e (patch) | |
tree | 4cedb9d908fab49ceb6467ea3ec403a0068fd093 /build-tools/macos-build/Makefile | |
parent | 2ea0ce02d9454cee14d1d5a96280615d88ba9b8c (diff) | |
parent | 5d838aa8a216e0c474294302a2f805df9655d813 (diff) | |
download | vyos-utils-misc-master.tar.gz vyos-utils-misc-master.zip |
T3485: Add macos support
Diffstat (limited to 'build-tools/macos-build/Makefile')
-rw-r--r-- | build-tools/macos-build/Makefile | 31 |
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) + + |