Files
wangjianhong 5e4e272b3a init
2025-07-23 17:30:33 +08:00

28 lines
630 B
Makefile

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