Commit 9cf9b570 authored by Jakub Kicinski's avatar Jakub Kicinski

tools: ynl: order building samples after generated code

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.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 92900372
...@@ -4,6 +4,8 @@ SUBDIRS = lib generated samples ...@@ -4,6 +4,8 @@ SUBDIRS = lib generated samples
all: $(SUBDIRS) all: $(SUBDIRS)
samples: | lib generated
$(SUBDIRS): $(SUBDIRS):
@if [ -f "$@/Makefile" ] ; then \ @if [ -f "$@/Makefile" ] ; then \
$(MAKE) -C $@ ; \ $(MAKE) -C $@ ; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment