make clean doesn't delete moc files
    Alexander Neundorf 
    neundorf at kde.org
       
    Thu Feb  5 21:02:18 CET 2009
    
    
  
On Thursday 05 February 2009, Matthias Kretz wrote:
> Hi,
>
> On Thursday 05 February 2009 18:56:23 Mike Arthur wrote:
> > On Thursday 05 February 2009 17:53:20 Michael Pyne wrote:
> > > On Thursday 05 February 2009, David Faure wrote:
> > > > Shouldn't it?
> > >
> > > Yes, it should.  Probably some flag that needs to be added in Automoc
> > > to cause CMake to add them to the list of files to be cleaned?
> >
> > SET_DIRECTORY_PROPERTIES(PROPERTIES
> > ADDITIONAL_MAKE_CLEAN_FILES "${VariableContainingMocFiles}")
> >
> > That'll do it.
>
> It sounds too easy. But reality is that the cmake scripts don't know what
> moc files exist/will be created. The only one that knows is the automoc
> executable. So that one could delete the files once cmake gets support for
> running an external command on make clean. For now it can only delete files
> - without globbing...
>
> ideas how to delete the moc files are welcome
Would a command line argument to automoc be possible, like "automoc --clean ." 
to clean the current directory ?
Ok, this wouldn't work, subdirs etc.
A dependency to the moc executable ?
Alex
    
    
More information about the Kde-buildsystem
mailing list