Add Makefile

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-03-24 03:01:48 +01:00
parent 79c681f0e1
commit f14be1e73f
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

9
Makefile Normal file
View 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