Skip to content

Commit

Permalink
tools: bpf: silence make by not deleting intermediate file
Browse files Browse the repository at this point in the history
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 <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
Jiri Benc authored and Daniel Borkmann committed Mar 9, 2018
1 parent a50b7f8 commit ef8ba83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $(OUTPUT)bpf_dbg: $(OUTPUT)bpf_dbg.o
$(OUTPUT)bpf_asm: $(OUTPUT)bpf_asm.o $(OUTPUT)bpf_exp.yacc.o $(OUTPUT)bpf_exp.lex.o
$(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $^

$(OUTPUT)bpf_exp.lex.o: $(OUTPUT)bpf_exp.yacc.c
$(OUTPUT)bpf_exp.lex.c: $(OUTPUT)bpf_exp.yacc.c

clean: bpftool_clean
$(call QUIET_CLEAN, bpf-progs)
Expand Down

0 comments on commit ef8ba83

Please sign in to comment.