From 0096a1cf0015e483b99e51c74f2f0bbae7247342 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Thu, 20 Jun 2019 17:02:30 +0200 Subject: [PATCH] scripts/config: fix *c_shipped build depency tracking The Makefile was missing dependencies on *c_shipped, so changes never triggered a rebuild. Add these as optional dependencies so their absence isn't treated as an error. In addition, fix a typo preventing the zconf.lex.o from being removed on clean. Fixes: 9d5510a500a1 ("build: add new menuconfig code based on linux 3.9") Signed-off-by: Jonas Gorski Acked-by: Jo-Philipp Wich --- scripts/config/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/config/Makefile b/scripts/config/Makefile index 745a5d0f84..8bb62d233c 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -31,7 +31,7 @@ lxdialog-objs := \ lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o \ lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -clean-files := zconf.tab.c lex.zconf.c zconf.hash.c +clean-files := zconf.tab.c zconf.lex.c zconf.hash.c # Remove qconf junk files clean-files += $(qconf-cxxobjs) qconf.moc .tmp_qtcheck qconf @@ -55,9 +55,9 @@ zconf.tab.o: zconf.lex.c zconf.hash.c confdata.c kconfig_load.o: lkc_defs.h -zconf.tab.c: zconf.y -zconf.lex.c: zconf.l -zconf.hash.c: zconf.gperf +zconf.tab.c: zconf.y $(wildcard zconf.tab.c_shipped) +zconf.lex.c: zconf.l $(wildcard zconf.lex.c_shipped) +zconf.hash.c: zconf.gperf $(wildcard zconf.hash.c_shipped) %.tab.c: %.y cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $< -- 2.25.1