Skip to content

Commit

Permalink
chore: add makefile and pass version as build arg
Browse files Browse the repository at this point in the history
  • Loading branch information
olastor committed Sep 21, 2024
1 parent 9ad8c2f commit 7af80fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
go build -ldflags "-X main.Version=$$(git describe --tags --always)" ./cmd/...

clean:
rm -f age-plugin-sss
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Please note that Windows builds are currently not enabled, but if you need them
Alternatively the plugin can be built from source. Simply run

```bash
go build -v ./cmd/...
make build
```
and copy the binary `age-plugin-sss` to a directory of your `$PATH`.

Expand Down

0 comments on commit 7af80fd

Please sign in to comment.