Skip to content

Commit

Permalink
include CREDITS file in artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Jan 9, 2021
1 parent 9496fee commit 1ef3582
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/goxz
/fillin
/goxz
/CREDITS
*.exe
*.test
*.out
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,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) .

$(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 ./...
Expand All @@ -44,7 +51,7 @@ $(GOBIN)/golint:

.PHONY: clean
clean:
rm -rf $(BIN) goxz
rm -rf $(BIN) goxz CREDITS
go clean

.PHONY: bump
Expand Down

0 comments on commit 1ef3582

Please sign in to comment.