JOJ3/Makefile
张泊明518370910136 51539c1e7c
All checks were successful
continuous-integration/drone/push Build is passing
feat: cpplint parser (#22)
Co-authored-by: Boming Zhang <bomingzh@sjtu.edu.cn>
Reviewed-on: FOCS-dev/JOJ3#22
2024-04-04 07:29:00 +08:00

19 lines
341 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
prepare-test:
git submodule update --init --remote
test:
go test -coverprofile cover.out -v ./...