From 462d3c0c2cb3aff6a1d1ddd012933ef22e120e7a Mon Sep 17 00:00:00 2001 From: Romain Bertrand Date: Mon, 5 Jan 2026 12:58:11 +0100 Subject: [PATCH] make: add an `install` target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57e8eda..d11a86a 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ -.PHONY: help build run test clean lint lint-fix +.PHONY: help build run test clean lint lint-fix install help: @echo "Available commands:" @echo " make build - Build the application" + @echo " make install - Install the binary to /usr/bin" @echo " make run - Run the application" @echo " make test - Run tests" @echo " make lint - Run golangci-lint" @@ -12,6 +13,9 @@ help: build: go build -o bin/fgj . +install: build + install -Dm755 bin/fgj /usr/bin/fgj + run: go run .