Skip to content

Commit

Permalink
Fix make generate target (#1237)
Browse files Browse the repository at this point in the history
* fix make generate target

* fix make generate
  • Loading branch information
RonFed authored Nov 2, 2024
1 parent 1151ce9 commit cb02997
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ test/%/go.mod:
PROBE_ROOT = internal/pkg/instrumentation/bpf/
PROBE_GEN_GO := $(shell find $(PROBE_ROOT) -type f -name 'bpf_*_bpfe[lb].go')
PROBE_GEN_OBJ := $(PROBE_GEN_GO:.go=.o)
PROBE_GEN_ALL := $(PROBE_GEN_GO) $(PROBE_GEN_OBJ)

# Include all depinfo files to ensure we only re-generate when needed.
-include $(shell find $(PROBE_ROOT) -type f -name 'bpf_*_bpfel.go.d')

.PHONY: generate generate/all
generate: $(PROBE_GEN_GO)
$(PROBE_GEN_GO): %.go: %.o
generate: $(PROBE_GEN_ALL)

$(PROBE_GEN_OBJ):
$(PROBE_GEN_ALL):
$(GOCMD) generate ./$(dir $@)...

generate/all:
Expand Down

0 comments on commit cb02997

Please sign in to comment.