From bafaa8a9410bb841b5a328d401515619d088e43a Mon Sep 17 00:00:00 2001 From: abs3nt Date: Mon, 19 Feb 2024 18:00:40 -0800 Subject: [PATCH] make --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a00fdab..c3e384b 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,14 @@ -build: gspot +build: + go build -ldflags="-X 'git.asdf.cafe/abs3nt/gspot/src/components/cli.Version=$(shell git show -s --date=short --pretty='format:%h (%ad)' HEAD)'" -o dist/ ./cmd/gspot -gspot: $(shell find . -name '*.go') - go build -ldflags="-X 'git.asdf.cafe/abs3nt/gspot/src/components/cli.Version=$(shell git show -s --date=short --pretty='format:%h (%ad)' HEAD)'" -o dist/ . - -run: - go run main.go +run: build + ./dist/gspot tidy: go mod tidy clean: - rm -rf bin + rm -rf dist uninstall: rm -f /usr/bin/gspot