Skip to content

Commit c3cd7cf

Browse files
committed
kconfig: qconf: use if_changed for qconf.moc rule
Regenerate qconf.moc when the moc command is changed. This also allows 'make mrproper' to clean it up. Previously, it was not cleaned up because 'clean-files += qconf.moc' was missing. Now 'make mrproper' correctly cleans it up because files listed in 'targets' are cleaned. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 6020db5 commit c3cd7cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/kconfig/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ $(obj)/qconf.o: $(obj)/qconf-cfg $(obj)/qconf.moc
192192
quiet_cmd_moc = MOC $@
193193
cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) -i $< -o $@
194194

195-
$(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg
196-
$(call cmd,moc)
195+
$(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg FORCE
196+
$(call if_changed,moc)
197+
198+
targets += qconf.moc
197199

198200
# gconf: Used for the gconfig target based on GTK+
199201
hostprogs += gconf

0 commit comments

Comments
 (0)