diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -.PHONY: all check release +.PHONY: all check chrootpkg patch release all: makepkg -sd @@ -6,6 +6,21 @@ all: check: namcap PKGBUILD +## Build the package using devtools. +## +## We bind the host go, go-build cache, and .gradle cache to the chroot/build +## to minimize re-downloading Go and Java dependencies on the next rebuild. +chrootpkg: + mkdir -p $$HOME/go + mkdir -p $$HOME/.cache/go-build + mkdir -p $$HOME/.gradle + mkdir -p _build + mkarchroot _build/root base-devel systemd || exit 0 + makechrootpkg -d $$HOME/go:/build/go \ + -d $$HOME/.cache/go-build:/build/.cache/go-build \ + -d $$HOME/.gradle:/build/.gradle \ + -r _build + patch: git -C src/google-cloud-ops-agent-git diff > 0001-apps-hostmetrics.patch && \ makepkg -g |
