parent
e6344bef01
commit
bafaa8a941
12
Makefile
12
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')
|
run: 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/ .
|
./dist/gspot
|
||||||
|
|
||||||
run:
|
|
||||||
go run main.go
|
|
||||||
|
|
||||||
tidy:
|
tidy:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf bin
|
rm -rf dist
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f /usr/bin/gspot
|
rm -f /usr/bin/gspot
|
||||||
|
Loading…
Reference in New Issue
Block a user