[CMake] cleaning targets

Michael Jackson mike.jackson at bluequartz.net
Thu Nov 6 15:05:27 EST 2008


On Nov 6, 2008, at 2:56 PM, Eric (Brad) Lemings wrote:

> Alexander Neundorf wrote:
>> What would be the purpose of this ?
>> What is the purpose of distclean anyway ?
>>
> These are conventional GNU cleaning targets that apply to virtually  
> all
> software that is built from source.
> The various cleaning targets are specified here:
> http://www.gnu.org/software/automake/manual/html_node/Clean.html
> The exact names of the targets are not so important as what they do  
> (or
> supposed to do).
>
> Eric.


IMHO, these are just NOT needed with a cmake project. make disclean  
and the others are needed because autotools sprinkles all sorts of  
files within your source directory so you need a bit more information  
to get rid of all that. CMake, when properly used with a discrete  
build directory, is extremely easy to clean. Just remove the contents  
of the build directory. 'rm -rf build' if you are on the command line.

If you are NOT using a dedicated build directory please start. Your  
life will be easier in the end.

These are just my <strong>opinions</strong>
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio





More information about the CMake mailing list