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 += $(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)
PHONY += dochecklxdialog
zconf.tab.c: zconf.y
bison -t -l -p zconf -o zconf.tab.c zconf.y
-clean:
+clean:
rm -f $(clean-files)
--include $(wildcard *.d)
--include $(wildcard lxdialog/*.d)
+-include $(all-deps)
+
# Temp file, try to clean up after us
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() {