[CMake] "make superclean" target? (i.e. clear *everything*)
Matthew Woehlke
matthew.woehlke at kitware.com
Thu Apr 4 11:32:06 EDT 2013
On 2013-04-04 06:30, Daniel Carrera wrote:
> On 4 April 2013 11:40, Ansis Māliņš wrote:
>> What would be the benefit of such a command besides syntax?
>
> Only a small convenience, nothing big. I am used to typing "make
> cleann" when I want to make sure that I am starting from a clean
> slate. I also have my shell configured so that it warns me when I type
> rm -rf *. I generally appreciate the warning but I want to make an
> exception for the build directory.
cd ..
rm -rf build
mkdir build
cd build
...? ;-)
(If your build directories tend to be in the same place, you could
easily write a shell function to do this, to save typing.)
--
Matthew
More information about the CMake
mailing list