Add `make build-arm7`

This makes it easy to build WF for ARMv7, e.g. the Raspberry Pi.

part of #135
This commit is contained in:
Matt Baer 2019-07-08 08:55:22 -04:00
parent 3faa2def08
commit 0b25109a6b
1 changed files with 6 additions and 0 deletions

View File

@ -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) .