BIN=./bin SRC=$(shell find . -name "*.go") .PHONY: install_deps fmt lint test clean build default: all all: test build install_deps: $(info ******************** downloading dependencies ********************) go get -v ./... fmt: $(info ******************** checking formatting ********************) @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1) test: $(info ******************** running tests ********************) go test -v ./... build: $(info ******************** building the project ********************) mkdir -p $(BIN) go build -o $(BIN)/ca-server ./main.go clean: rm -rf $(BIN)/ca-server