make clean doesn't delete moc files

David Faure faure at kde.org
Thu Feb 5 21:42:41 CET 2009


On Thursday 05 February 2009, Alexander Neundorf wrote:
> Would a command line argument to automoc be possible, like "automoc --clean ." 
> to clean the current directory ?
> Ok, this wouldn't work, subdirs etc.

Well it could recurse, maybe?

> A dependency to the moc executable ?

Eek, no. Deleting moc files is very rarely needed - 4.4 -> 4.5 upgrade yes,
but not during any of the previous 4.4.x -> 4.4.y upgrades, nor if your moc
gets recompiled because /usr/include/stdlib.h was updated by a minor
system upgrade for instance. The most common case _is_ that a change
in the moc executable doesn't make it incompatible, that's really the rare case.

-- 
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list