Browse Source

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 4 years ago
parent
commit
0b25109a6b
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Makefile

+ 6
- 0
Makefile 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) .



Loading…
Cancel
Save