|
|
@ -27,37 +27,37 @@ build-linux: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=linux/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=linux/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-windows: deps |
|
|
|
build-windows: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=windows/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=windows/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-darwin: deps |
|
|
|
build-darwin: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=darwin/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=darwin/amd64, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-arm6: deps |
|
|
|
build-arm6: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=linux/arm-6, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=linux/arm-6, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-arm7: deps |
|
|
|
build-arm7: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=linux/arm-7, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=linux/arm-7, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-arm64: deps |
|
|
|
build-arm64: deps |
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
$(GOGET) -u src.techknowlogick.com/xgo; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
xgo --targets=linux/arm64, -dest build/ $(LDFLAGS) -tags='sqlite' -out writefreely ./cmd/writefreely
|
|
|
|
xgo --targets=linux/arm64, -dest build/ $(LDFLAGS) -tags='sqlite' -go go-1.15.x -out writefreely ./cmd/writefreely
|
|
|
|
|
|
|
|
|
|
|
|
build-docker : |
|
|
|
build-docker : |
|
|
|
$(DOCKERCMD) build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) .
|
|
|
|
$(DOCKERCMD) build -t $(IMAGE_NAME):latest -t $(IMAGE_NAME):$(GITREV) .
|
|
|
@ -105,13 +105,13 @@ release : clean ui assets |
|
|
|
tar -cvzf $(BINARY_NAME)_$(GITREV)_linux_arm64.tar.gz -C build $(BINARY_NAME)
|
|
|
|
tar -cvzf $(BINARY_NAME)_$(GITREV)_linux_arm64.tar.gz -C build $(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
$(MAKE) build-darwin
|
|
|
|
$(MAKE) build-darwin
|
|
|
|
mv build/$(BINARY_NAME)-darwin-10.6-amd64 $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
mv build/$(BINARY_NAME)-darwin-10.12-amd64 $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
tar -cvzf $(BINARY_NAME)_$(GITREV)_macos_amd64.tar.gz -C build $(BINARY_NAME)
|
|
|
|
tar -cvzf $(BINARY_NAME)_$(GITREV)_macos_amd64.tar.gz -C build $(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
$(MAKE) build-windows
|
|
|
|
$(MAKE) build-windows
|
|
|
|
mv build/$(BINARY_NAME)-windows-4.0-amd64.exe $(BUILDPATH)/$(BINARY_NAME).exe
|
|
|
|
mv build/$(BINARY_NAME)-windows-4.0-amd64.exe $(BUILDPATH)/$(BINARY_NAME).exe
|
|
|
|
cd build; zip -r ../$(BINARY_NAME)_$(GITREV)_windows_amd64.zip ./$(BINARY_NAME)
|
|
|
|
cd build; zip -r ../$(BINARY_NAME)_$(GITREV)_windows_amd64.zip ./$(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME)
|
|
|
|
rm $(BUILDPATH)/$(BINARY_NAME).exe
|
|
|
|
$(MAKE) build-docker
|
|
|
|
$(MAKE) build-docker
|
|
|
|
$(MAKE) release-docker
|
|
|
|
$(MAKE) release-docker
|
|
|
|
|
|
|
|
|
|
|
|