update Makefile

This commit is contained in:
agatha 2024-05-12 16:15:50 -04:00
parent d913a90947
commit 29db699202
2 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@ GOCMD=go
GOBUILD=$(GOCMD) build GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean GOCLEAN=$(GOCMD) clean
CLI_BINARY_NAME=ketotrack-cli CLI_BINARY_NAME=ketotrack
CLI_BUILD_DIR=./cmd/cli CLI_BUILD_DIR=./cmd/cli
.PHONY: all cli clean test .PHONY: all cli clean test

View File

@ -8,10 +8,9 @@ Simple ketosis tracker written in Go.
Reading data will be saved to `$HOME/.ketotrack/records.json` and graphing will be implemented at a later date. Reading data will be saved to `$HOME/.ketotrack/records.json` and graphing will be implemented at a later date.
## Building and Installing ## Building and Installing
At some point I'll include a Makefile, until then manually build and copy to any directory in your path. Use the provided make file and then move the binary to your directory choice:
```shell ```shell
cd cmd/cli make
go build -o ketotrack mv ketotrack ~/.local/bin/
mv ketotrack $HOME/.local/bin
``` ```