Skip to content

Commit

Permalink
makefile: change alignchecker target to compile gotest
Browse files Browse the repository at this point in the history
Signed-off-by: William Findlay <will@isovalent.com>
  • Loading branch information
willfindlay authored and tpapagian committed Oct 13, 2023
1 parent 3e1ea3d commit 02861f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/bin
lib/*
/tetragon
/tetragon-alignchecker
/alignchecker
/tetragon-bench
/tetragon-operator
/tetra
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/

Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 02861f0

Please sign in to comment.