Skip to content

Commit

Permalink
fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Jun 25, 2024
1 parent f91b78c commit fe5d618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PATH := $(shell echo $$HOME)/.cargo/bin:$(PATH)
export PATH := $(shell echo $$HOME)/.cargo/bin:$(PATH):/usr/sbin
PROFILE ?= release
RELEASE = $(if $(filter $(PROFILE),release),--release,)
BIN_DIR := target/$(PROFILE)
Expand All @@ -12,7 +12,7 @@ $(BIN_DIR)/chsr:
cargo build $(RELEASE) --bin chsr || true

$(BIN_DIR)/capable:
PATH=$PATH:/usr/sbin aya-tool generate task_struct > capable-ebpf/src/vmlinux.rs
aya-tool generate task_struct > capable-ebpf/src/vmlinux.rs
cargo xtask build-ebpf $(RELEASE) || true
cargo build --package capable $(RELEASE) || true

Expand Down

0 comments on commit fe5d618

Please sign in to comment.