Add `make build-arm7`

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

part of #135
pull/137/head
Matt Baer 5 years ago
parent 3faa2def08
commit 0b25109a6b
  1. 6
      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) .

Loading…
Cancel
Save