From cc21fb4978b54d643d8fb3f5a454e62da4b396c2 Mon Sep 17 00:00:00 2001 From: Gab Virebent Date: Tue, 7 Jul 2026 16:24:30 +0200 Subject: Initial commit --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..652ad92 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +BINARY := qpass +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +GO ?= go + +.PHONY: all build clean fmt install test uninstall + +all: build + +build: + mkdir -p bin + CGO_ENABLED=0 $(GO) build -buildvcs=false -trimpath -ldflags="-s -w" -o bin/$(BINARY) ./cmd/qpass + +fmt: + $(GO) fmt ./... + +test: + $(GO) test ./... + +install: build + install -Dm755 bin/$(BINARY) "$(DESTDIR)$(BINDIR)/$(BINARY)" + +uninstall: + rm -f "$(DESTDIR)$(BINDIR)/$(BINARY)" + +clean: + rm -rf bin -- cgit v1.2.3