mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-22 15:11:16 +01:00
build: include generate step in release build + warn of dirty git working copy
This commit is contained in:
parent
8473462adf
commit
746fb4ff88
7
Makefile
7
Makefile
@ -72,13 +72,16 @@ docs-clean:
|
||||
clean \
|
||||
BUILDDIR=../artifacts/docs
|
||||
|
||||
release-bins: $(ARTIFACTDIR) vet test
|
||||
release-bins: generate $(ARTIFACTDIR) vet test
|
||||
@echo "INFO: In case of missing dependencies, run 'make vendordeps'"
|
||||
GOOS=linux GOARCH=amd64 $(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl-linux-amd64"
|
||||
GOOS=freebsd GOARCH=amd64 $(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl-freebsd-amd64"
|
||||
|
||||
release: release-bins docs $(ARTIFACTDIR)/bash_completion
|
||||
|
||||
@if echo "$(ZREPL_VERSION)" | grep dirty > /dev/null; then\
|
||||
echo '[WARN] Do not publish the artifacts, make variable ZREPL_VERSION=$(ZREPL_VERSION) indicates they are dirty!'; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
clean: docs-clean
|
||||
rm -rf "$(ARTIFACTDIR)"
|
||||
|
Loading…
Reference in New Issue
Block a user