summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3fbc19d..decdf84 100644
--- a/Makefile
+++ b/Makefile
@@ -15,18 +15,18 @@ install:
# workaround bug in case CURDIR is a symlink
# see https://github.com/golang/go/issues/24359
cd "$(REAL_CURDIR)" && \
- go install -v -ldflags "$(GO_LDFLAGS)"
+ go install -v -ldflags "$(GO_LDFLAGS)" $(GO_PACKAGES)
release:
- gox -output="$(RELEASE_DIR)/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' -ldflags '$(GO_LDFLAGS)' $(PACKAGE)
+ gox -output="$(RELEASE_DIR)/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' -ldflags '$(GO_LDFLAGS)' $(GO_PACKAGES)
cp LICENSE "$(RELEASE_DIR)"
- for f in "$(RELEASE_DIR)"/*/blubber; do \
+ for f in "$(RELEASE_DIR)"/*/{blubber,blubberd}; do \
shasum -a 256 "$${f}" | awk '{print $$1}' > "$${f}.sha256"; \
done
lint:
@echo > .lint-gofmt.diff
- @go list -f $(GO_LIST_GOFILES) ./... | while read f; do \
+ @go list -f $(GO_LIST_GOFILES) $(GO_PACKAGES) | while read f; do \
gofmt -e -d "$${f}" >> .lint-gofmt.diff; \
done
@test -z "$(grep '[^[:blank:]]' .lint-gofmt.diff)" || (echo "gofmt found errors:"; cat .lint-gofmt.diff; exit 1)