.PHONY: all build clean help

TARGET="./bin/bl"

all: tidy build

build:
	GOOS=linux GOARCH=amd64 go build -o ${TARGET} cmd/bl/bl.go

format:
	go fmt ./...

tidy:
	go mod tidy

clean:
	@if [ -f ${TARGET} ] ; then rm ${TARGET} ; fi

help:
	@echo "make 		- update go.mod && build the target"
	@echo "make build 	- build the target"
	@echo "make format 	- format the code"
	@echo "make tidy 	- update go.mod"
	@echo "make clean 	- remove the target"
