init
This commit is contained in:
28
ca-server/Makefile
Normal file
28
ca-server/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user