BINARY_NAME=classify
BUILD_DIRECTROY=./dist

CGO_ENABLED=1

build:
	mkdir -p ${BUILD_DIRECTROY}
	CGO_ENABLED=${CGO_ENABLED} go build -ldflags "-s -w" -trimpath -o ${BUILD_DIRECTROY}/${BINARY_NAME} main.go

run: build
	${BUILD_DIRECTROY}/${BINARY_NAME}

clean:
	go clean

clean_all: clean
	rm -rd ${BUILD_DIRECTROY}

test:
	go test ./...

test_coverage:
	go test ./... -coverprofile=coverage.out

dep:
	go mod download
