From 02861f059ce16be94329cab166181ff9ad741dbd Mon Sep 17 00:00:00 2001 From: William Findlay Date: Thu, 12 Oct 2023 10:14:41 -0400 Subject: [PATCH] makefile: change alignchecker target to compile gotest Signed-off-by: William Findlay --- .gitignore | 2 +- Makefile | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index cb7087528f8..d3f7b05c6e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /bin lib/* /tetragon -/tetragon-alignchecker +/alignchecker /tetragon-bench /tetragon-operator /tetra diff --git a/Makefile b/Makefile index f9523b1e580..f85dfbeba0d 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ endif GO_BUILD = CGO_ENABLED=0 GOARCH=$(GOARCH) $(GO) build $(GO_BUILD_FLAGS) .PHONY: all -all: tetragon-bpf tetragon tetra tetragon-alignchecker test-compile tester-progs protoc-gen-go-tetragon tetragon-bench +all: tetragon-bpf tetragon tetra test-compile tester-progs protoc-gen-go-tetragon tetragon-bench -include Makefile.docker -include Makefile.cli @@ -160,7 +160,7 @@ tetragon-bpf-container: verify: tetragon-bpf sudo contrib/verify/verify.sh bpf/objs -.PHONY: tetragon tetra tetragon-operator tetragon-alignchecker tetragon-bench +.PHONY: tetragon tetra tetragon-operator tetragon-bench tetragon: $(GO_BUILD) ./cmd/tetragon/ @@ -173,8 +173,9 @@ tetragon-bench: tetragon-operator: $(GO_BUILD) -o $@ ./operator -tetragon-alignchecker: - $(GO_BUILD) -o $@ ./tools/alignchecker/ +.PHONY: alignchecker +alignchecker: + $(GO) test -c ./pkg/alignchecker -o alignchecker .PHONY: ksyms ksyms: @@ -206,7 +207,7 @@ vendor: .PHONY: clean clean: cli-clean tarball-clean $(MAKE) -C ./bpf clean - rm -f go-tests/*.test ./ksyms ./tetragon ./tetragon-operator ./tetra ./tetragon-alignchecker + rm -f go-tests/*.test ./ksyms ./tetragon ./tetragon-operator ./tetra ./alignchecker rm -f contrib/sigkill-tester/sigkill-tester contrib/namespace-tester/test_ns contrib/capabilities-tester/test_caps $(MAKE) -C $(TESTER_PROGS_DIR) clean