Compare commits

...

2 Commits

Author SHA1 Message Date
29db699202 update Makefile 2024-05-12 16:15:50 -04:00
d913a90947 add Makefile 2024-05-12 16:13:35 -04:00
2 changed files with 20 additions and 4 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
CLI_BINARY_NAME=ketotrack
CLI_BUILD_DIR=./cmd/cli
.PHONY: all cli clean test
all: cli
cli:
$(GOBUILD) -o $(CLI_BINARY_NAME) $(CLI_BUILD_DIR)
clean:
$(GOCLEAN)
rm -f $(CLI_BINARY_NAME)

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.
## 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
cd cmd/cli
go build -o ketotrack
mv ketotrack $HOME/.local/bin
make
mv ketotrack ~/.local/bin/
```