Skip to content

Commit ef8ba83

Browse files
Jiri Bencborkmann
authored andcommitted
tools: bpf: silence make by not deleting intermediate file
Even in quiet mode, make finishes with rm tools/bpf/bpf_exp.lex.c That's because it considers the file to be intermediate. Silence that by mentioning the lex.c file instead of the lex.o file; the dependency still stays. Signed-off-by: Jiri Benc <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent a50b7f8 commit ef8ba83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $(OUTPUT)bpf_dbg: $(OUTPUT)bpf_dbg.o
7575
$(OUTPUT)bpf_asm: $(OUTPUT)bpf_asm.o $(OUTPUT)bpf_exp.yacc.o $(OUTPUT)bpf_exp.lex.o
7676
$(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $^
7777

78-
$(OUTPUT)bpf_exp.lex.o: $(OUTPUT)bpf_exp.yacc.c
78+
$(OUTPUT)bpf_exp.lex.c: $(OUTPUT)bpf_exp.yacc.c
7979

8080
clean: bpftool_clean
8181
$(call QUIET_CLEAN, bpf-progs)

0 commit comments

Comments
 (0)