Add Makefile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
79c681f0e1
commit
f14be1e73f
1 changed files with 9 additions and 0 deletions
9
Makefile
Normal file
9
Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
default: build
|
||||
|
||||
build: export CGO_ENABLED=0
|
||||
build:
|
||||
go build \
|
||||
-ldflags "-X main.version=$(shell git describe --tags --always || echo dev)" \
|
||||
-mod=readonly \
|
||||
-modcacherw \
|
||||
-trimpath
|
Loading…
Reference in a new issue