Commit a5066017 authored by Jakub Kicinski's avatar Jakub Kicinski

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: default avatarStanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231003153416.2479808-3-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0629f22e
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
SUBDIRS = lib generated samples SUBDIRS = lib generated samples
all: $(SUBDIRS) all: $(SUBDIRS)
./ynl-regen.sh -f -p $(PWD)/../../../
$(SUBDIRS): $(SUBDIRS):
@if [ -f "$@/Makefile" ] ; then \ @if [ -f "$@/Makefile" ] ; then \
......
...@@ -19,7 +19,7 @@ SRCS=$(patsubst %,%-user.c,${GENS}) ...@@ -19,7 +19,7 @@ SRCS=$(patsubst %,%-user.c,${GENS})
HDRS=$(patsubst %,%-user.h,${GENS}) HDRS=$(patsubst %,%-user.h,${GENS})
OBJS=$(patsubst %,%-user.o,${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) protos.a: $(OBJS)
@echo -e "\tAR $@" @echo -e "\tAR $@"
......
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