tools: ynl: don't regen on every make
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Oct 2023 15:34:15 +0000 (08:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Oct 2023 00:33:54 +0000 (17:33 -0700)
As far as I can tell the normal Makefile dependency tracking
works, generated files get re-generated if the YAML was updated.
Let make do its job, don't force the re-generation.
make hardclean can be used to force regeneration.

Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231003153416.2479808-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/Makefile
tools/net/ynl/generated/Makefile

index 8156f03e23acf0715b37ff1afc6f137fc30170ef..d664b36deb5b56d3ca7425dce4e13eb040b3e006 100644 (file)
@@ -3,7 +3,6 @@
 SUBDIRS = lib generated samples
 
 all: $(SUBDIRS)
-       ./ynl-regen.sh -f -p $(PWD)/../../../
 
 $(SUBDIRS):
        @if [ -f "$@/Makefile" ] ; then \
index f8817d2e56e41b1cba960b1bdc059b79ca42115e..0f359ee3c46a95b05bc2198a7daf8264032562da 100644 (file)
@@ -19,7 +19,7 @@ SRCS=$(patsubst %,%-user.c,${GENS})
 HDRS=$(patsubst %,%-user.h,${GENS})
 OBJS=$(patsubst %,%-user.o,${GENS})
 
-all: protos.a $(HDRS) $(SRCS) $(KHDRS) $(KSRCS) $(UAPI) regen
+all: protos.a $(HDRS) $(SRCS) $(KHDRS) $(KSRCS) $(UAPI)
 
 protos.a: $(OBJS)
        @echo -e "\tAR $@"