mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
build: make clean should remove all .d files in tools/kconfig
Causes a problem that can't be fixed by "make clean" if the host OS headers have moved around. ie https://esp32.com/viewtopic.php?f=13&t=3098&p=14487
This commit is contained in:
committed by
Angus Gratton
parent
022d949ccf
commit
a361a00405
@@ -173,9 +173,12 @@ gconf-objs := gconf.o zconf.tab.o
|
|||||||
|
|
||||||
hostprogs-y := conf nconf mconf kxgettext qconf gconf
|
hostprogs-y := conf nconf mconf kxgettext qconf gconf
|
||||||
|
|
||||||
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck *.d
|
all-objs := $(conf-objs) $(mconf-objs) $(lxdialog)
|
||||||
|
all-deps := $(all-objs:.o=.d)
|
||||||
|
|
||||||
|
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
|
||||||
clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
|
clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
|
||||||
clean-files += $(conf-objs) $(mconf-objs) conf mconf $(lxdialog)
|
clean-files += $(all-objs) $(all-deps) conf mconf
|
||||||
|
|
||||||
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
||||||
PHONY += dochecklxdialog
|
PHONY += dochecklxdialog
|
||||||
@@ -310,5 +313,5 @@ zconf.tab.c: zconf.y
|
|||||||
clean:
|
clean:
|
||||||
rm -f $(clean-files)
|
rm -f $(clean-files)
|
||||||
|
|
||||||
-include $(wildcard *.d)
|
-include $(all-deps)
|
||||||
-include $(wildcard lxdialog/*.d)
|
|
||||||
|
@@ -49,7 +49,7 @@ ccflags()
|
|||||||
|
|
||||||
# Temp file, try to clean up after us
|
# Temp file, try to clean up after us
|
||||||
tmp=.lxdialog.tmp
|
tmp=.lxdialog.tmp
|
||||||
trap "rm -f $tmp" 0 1 2 3 15
|
trap "rm -f $tmp ${tmp%.tmp}.d" 0 1 2 3 15
|
||||||
|
|
||||||
# Check if we can link to ncurses
|
# Check if we can link to ncurses
|
||||||
check() {
|
check() {
|
||||||
|
Reference in New Issue
Block a user