From 0b25109a6bd0b53c3e19bcfdbeb84604e78b4f11 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 8 Jul 2019 08:55:22 -0400 Subject: [PATCH] Add `make build-arm7` This makes it easy to build WF for ARMv7, e.g. the Raspberry Pi. part of #135 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index f5f071c..8fcbc43 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,12 @@ build-darwin: deps fi xgo --targets=darwin/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely +build-arm7: deps + @hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + $(GOGET) -u github.com/karalabe/xgo; \ + fi + xgo --targets=linux/arm-7, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely + build-docker : $(DOCKERCMD) build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) .