From cad20d55b437d5ebe3766f587456027a81ed24db Mon Sep 17 00:00:00 2001 From: Shinya Hayashi Date: Mon, 19 Feb 2024 00:08:58 +0900 Subject: [PATCH] exclude test directory from build target candidate Signed-off-by: Shinya Hayashi --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5767e48..3e4a00b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ IMAGE_NAME ?= ghcr.io/peng225/oval BINDIR := bin -GO_FILES := $(shell find . -type f -name '*.go' -print) +GO_FILES := $(shell find . -path './test' -prune -o -type f -name '*.go' -print) MINIO_DATADIR := $(shell git rev-parse --show-toplevel)/test/data MINIO_CERTDIR := $(shell git rev-parse --show-toplevel)/test/certs @@ -73,9 +73,10 @@ run-leader-with-config: $(OVAL) .PHONY: run-followers run-followers: $(OVAL) - $(OVAL) follower --follower_port 8080 $(CERT_CONFIG) & + echo hoge $(OVAL) follower --follower_port 8081 $(CERT_CONFIG) & $(OVAL) follower --follower_port 8082 $(CERT_CONFIG) & + $(OVAL) follower --follower_port 8083 $(CERT_CONFIG) & $(CERTGEN): | $(BINDIR) wget https://github.com/minio/certgen/releases/download/$(CERTGEN_VERSION)/certgen-linux-amd64