Skip to content

Commit

Permalink
tetragon: Remove not needed rule commands
Browse files Browse the repository at this point in the history
Keep just the dependency, the command is carried out by the default
rule.

Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Dec 10, 2024
1 parent c3e2002 commit 98c71ef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ VAR := $1
# We need to define extra rules for multi probes because the object name
# is different then the source file.
$(DEPSDIR)bpf_multi_kprobe_$$(VAR).d: $(PROCESSDIR)bpf_generic_kprobe.c
$$(call rule_d,$(VARIANT_CFLAGS))
$(DEPSDIR)bpf_multi_retkprobe_$$(VAR).d: $(PROCESSDIR)bpf_generic_retkprobe.c
$$(call rule_d,$(VARIANT_CFLAGS))
$(DEPSDIR)bpf_multi_uprobe_$$(VAR).d: $(PROCESSDIR)bpf_generic_uprobe.c
$$(call rule_d,$(VARIANT_CFLAGS))

# Object build rule for VARIANT objects
$(OBJSDIR)%_$$(VAR).o:
Expand Down Expand Up @@ -177,18 +174,19 @@ objs/%.ll:
$(rule_ll)

# Generic dependency files
$(DEPSDIR)%.d: $(ALIGNCHECKERDIR)%.c
$(rule_d)
$(DEPSDIR)bpf_multi_enforcer.d: $(PROCESSDIR)bpf_enforcer.c
$(rule_d)
$(DEPSDIR)bpf_fmodret_enforcer.d: $(PROCESSDIR)bpf_enforcer.c

$(DEPSDIR)%.d: $(ALIGNCHECKERDIR)%.c
$(rule_d)
$(DEPSDIR)%.d: $(PROCESSDIR)%.c
$(rule_d)
$(DEPSDIR)%.d: $(BPFTESTDIR)%.c
$(rule_d)
$(DEPSDIR)%.d: $(CGROUPDIR)%.c
$(rule_d)
$(DEPSDIR)%.d:
$(rule_d)

# include dependencies, see https://lists.gnu.org/archive/html/make-w32/2004-03/msg00062.html
ifeq (,$(filter $(MAKECMDGOALS),clean run-test))
Expand Down

0 comments on commit 98c71ef

Please sign in to comment.