Skip to content

Commit aeb90ec

Browse files
committed
local development makefile
1 parent 5108dd1 commit aeb90ec

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist
2+
bin

‎Makefile‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This makefile is currently just for convenience in my own local development,
2+
# you probably don't want to be using it otherwise.
3+
NAME=bump
4+
5+
bin/$(NAME): *.go bin
6+
go build -o $@
7+
8+
bin:
9+
mkdir -p bin
10+
11+
snapshot:
12+
goreleaser release --rm-dist --snapshot
13+
14+
package:
15+
# never want to actually publish from local, thats what CI is for
16+
goreleaser release --rm-dist --no-publish
17+
18+
clean:
19+
rm -rf bin
20+
rm -rf dist
21+
22+
install:
23+
go install
24+
25+
uninstall:
26+
rm ${GOPATH}/bin/$(NAME)
27+
28+
.PHONY: snapshot package clean install uninstall

0 commit comments

Comments
 (0)
⌂ 换网址