Compare commits
2 Commits
ea76685f8f
...
29db699202
Author | SHA1 | Date | |
---|---|---|---|
29db699202 | |||
d913a90947 |
17
Makefile
Normal file
17
Makefile
Normal 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)
|
@ -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
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user