initial commit

This commit is contained in:
2025-03-07 12:22:35 +01:00
parent d64ab08b45
commit 72ebdb4569
5 changed files with 127 additions and 0 deletions

13
Makefile Normal file
View File

@@ -0,0 +1,13 @@
tool = watson-starship
all: buildlocal
buildlocal:
CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags "-extldflags=-static -w" --trimpath -buildmode=pie -o $(tool)
strip --strip-all $(tool)
install: buildlocal
install -m 755 $(tool) $(HOME)/bin/
clean:
rm -rf $(tool)