tools: ynl: order building samples after generated code
authorJakub Kicinski <kuba@kernel.org>
Wed, 29 Nov 2023 19:36:21 +0000 (11:36 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Nov 2023 00:07:00 +0000 (16:07 -0800)
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>
tools/net/ynl/Makefile

index d664b36deb5b56d3ca7425dce4e13eb040b3e006..da1aa10bbcc3d36eb8f7976ef1453b98ac57217a 100644 (file)
@@ -4,6 +4,8 @@ SUBDIRS = lib generated samples
 
 all: $(SUBDIRS)
 
+samples: | lib generated
+
 $(SUBDIRS):
        @if [ -f "$@/Makefile" ] ; then \
                $(MAKE) -C $@ ; \