.PHONY: all

# all: test build run
all: build run

.PHONY: run

run:
	@go run ./...

.PHONY: build

build:
	@go build -o ./build/upclapi ./...
	@echo "[OK] upclapi was build in ./build/upclapi !"

.PHONY: install

install:
	@go install
	@echo "[OK] upclapi was installed in $$GOPATH/bin/upclapi"

# .PHONY: test

# test:
# 	@go test -v -coverprofile=cover.out ./...
# 	@echo "[OK] Test and coverage file was created!"

.PHONY: show_coverage

show_coverage:
	@go tool cover -html=cover.out
	@echo "[OK] Coverage file opened!"