Skip to content

Commit

Permalink
tools: ynl: order building samples after generated code
Browse files Browse the repository at this point in the history
Parallel builds of ynl:

  make -C tools/net/ynl/ -j 4

don't work correctly right now. samples get handled before
generated, so build of samples does not notice that protos.a
has changed. Order samples to be last.

Link: https://lore.kernel.org/r/20231129193622.2912353-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Nov 30, 2023
1 parent 9290037 commit 9cf9b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/net/ynl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ SUBDIRS = lib generated samples

all: $(SUBDIRS)

samples: | lib generated

$(SUBDIRS):
@if [ -f "$@/Makefile" ] ; then \
$(MAKE) -C $@ ; \
Expand Down

0 comments on commit 9cf9b57

Please sign in to comment.