JOJ3/Makefile
张泊明518370910136 9d15b0038f
All checks were successful
continuous-integration/drone/push Build is passing
chore: generate coverage report
2024-03-25 16:33:39 -04:00

16 lines
288 B
Makefile

.PHONY: all clean test
BUILD_DIR = ./build
APPS := $(notdir $(wildcard ./cmd/*))
FLAGS := "-s -w"
all:
$(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);)
clean:
rm -rf $(BUILD_DIR)/*
rm -rf *.out
test:
go test -coverprofile cover.out -v ./...