diff options
author | 2023-10-03 08:34:15 -0700 | |
---|---|---|
committer | 2023-10-04 17:33:54 -0700 | |
commit | a50660173c7329c5d2ce1780a0f712a7f584d378 (patch) | |
tree | 82be86c3d1b938a704cdae6042f4baddac9a9007 /tools | |
parent | ynl: netdev: drop unnecessary enum-as-flags (diff) | |
download | linux-a50660173c7329c5d2ce1780a0f712a7f584d378.tar.gz linux-a50660173c7329c5d2ce1780a0f712a7f584d378.tar.bz2 linux-a50660173c7329c5d2ce1780a0f712a7f584d378.zip |
tools: ynl: don't regen on every make
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/net/ynl/Makefile | 1 | ||||
-rw-r--r-- | tools/net/ynl/generated/Makefile | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile index 8156f03e23ac..d664b36deb5b 100644 --- a/tools/net/ynl/Makefile +++ b/tools/net/ynl/Makefile @@ -3,7 +3,6 @@ SUBDIRS = lib generated samples all: $(SUBDIRS) - ./ynl-regen.sh -f -p $(PWD)/../../../ $(SUBDIRS): @if [ -f "$@/Makefile" ] ; then \ diff --git a/tools/net/ynl/generated/Makefile b/tools/net/ynl/generated/Makefile index f8817d2e56e4..0f359ee3c46a 100644 --- a/tools/net/ynl/generated/Makefile +++ b/tools/net/ynl/generated/Makefile @@ -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 $@" |