Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ kind: ## Create a kind cluster for Tetragon development.
./contrib/kind/bootstrap-kind-cluster.sh

KIND_BUILD_IMAGES ?= 1
VALUES ?=
VALUES ?=

## kind-install-tetragon: ## Install Tetragon in a kind cluster.
## kind-install-tetragon KIND_BUILD_IMAGES=0: ## Install Tetragon in a kind cluster without (re-)building images.
Expand Down Expand Up @@ -494,3 +494,14 @@ docs: ## Preview documentation website.
.PHONY: version
version: ## Print Tetragon version.
@echo $(VERSION)

.PHONY: gen-compile-commands
BEAR_CLI := $(shell which bear 2> /dev/null)
gen-compile-commands: ## Generates compile_commands.json
ifeq ($(BEAR_CLI),)
@echo "Error: 'bear' must be installed and available in \$\$PATH to generate the compile_commands.json"
@exit 1
else
@echo "Generating compile_commands.json using bear..."
@$(BEAR_CLI) $(MAKE) tetragon-bpf LOCAL_CLANG=1 LOCAL_CLANG_FORMAT=1
endif
Loading