include CREDITS file in artifacts

This commit is contained in:
itchyny 2020-09-19 10:57:00 +09:00
parent 8b1a6fae22
commit ec4f47cf17
2 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
/mmv
/goxz
/CREDITS
*.exe
*.test
*.out

View file

@ -25,12 +25,19 @@ $(GOBIN)/gobump:
@cd && go get github.com/x-motemen/gobump/cmd/gobump
.PHONY: cross
cross: $(GOBIN)/goxz
cross: $(GOBIN)/goxz CREDITS
goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN)
$(GOBIN)/goxz:
cd && go get github.com/Songmu/goxz/cmd/goxz
CREDITS: $(GOBIN)/gocredits go.sum
go mod tidy
gocredits -w .
$(GOBIN)/gocredits:
cd && go get github.com/Songmu/gocredits/cmd/gocredits
.PHONY: test
test: build
go test -v ./...
@ -45,7 +52,7 @@ $(GOBIN)/golint:
.PHONY: clean
clean:
rm -rf $(BIN) goxz
rm -rf $(BIN) goxz CREDITS
go clean
.PHONY: bump