Skip to content

Commit

Permalink
make install; ver in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
itayd committed May 25, 2022
1 parent 3ac351e commit 2d07964
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
with:
go-version: '1.18.0'
- name: build
run: make pounce
run: make pounce && ./pounce -v
- name: test
run: make test
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.PHONY: all
all: pounce test

.PHONY: pounce
pounce:
go build .
pounce: go.* *.go
go build -ldflags="-X 'main.version=dev-$(shell git rev-parse HEAD)'"

.PHONY: test
test:
./tests/run.sh

.PHONY: install
install: pounce
go install
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ simple find and replace in files.
# Install

```
$ go install github.com/itayd/pounce
$ go install github.com/itayd/pounce@latest
```

# Use
Expand Down

0 comments on commit 2d07964

Please sign in to comment.