Skip to content

Commit ae7431b

Browse files
committed
change: default target make just does go build, add make snapshot
- this way the default target does not need `goreleaser`
1 parent a78ee48 commit ae7431b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GOVERSION := $$(go version)
88
# keep docopts: as first target for development
99

1010
docopts: docopts.go Makefile
11-
GOVERSION=$(GOVERSION) goreleaser build --rm-dist --snapshot --single-target -o $@
11+
go build -o $@
1212

1313
install_builddep:
1414
go mod tidy
@@ -35,5 +35,8 @@ README.md: examples/legacy_bash/rock_hello_world.sh examples/legacy_bash/rock_he
3535
clean:
3636
rm -f docopts-* docopts README.tmp dist/*
3737

38-
release: clean all test
38+
snapshot: install_builddep
39+
GOVERSION=$(GOVERSION) goreleaser build --rm-dist --snapshot --single-target -o docopts
40+
41+
release: clean all test snapshot
3942
GOVERSION=$(GOVERSION) goreleaser release

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ you have Go installed. Or find a local golang developer that you
374374
trust and ask her, in exchange for a beer or two, if she could build it for you. ;)
375375

376376
local build:
377+
(also done with our Makefile default target: `make`)
377378

378379
```
379380
go build docopts.go
@@ -385,7 +386,7 @@ cross compile for 32 bit:
385386
env GOOS=linux GOARCH=386 go build docopts.go
386387
```
387388

388-
or via Makefile (note that this installs extra, development only dependencies):
389+
or via Makefile:
389390

390391
```
391392
make all

0 commit comments

Comments
 (0)