[CMake] "make superclean" target? (i.e. clear *everything*)
Eric Noulard
eric.noulard at gmail.com
Thu Apr 4 06:41:22 EDT 2013
2013/4/4 Daniel Carrera <dcarrera at gmail.com>
> On 4 April 2013 11:41, Eric Noulard <eric.noulard at gmail.com> wrote:
> > You can perfectly add a custom target/command to do that,
> > if you do out-of-source build then removing the build dir is ok.
>
> Thanks. Yes, I am doing out of source builds.
>
> > Now, this would be a one-shot suicidal target since this will
> > basically erase the build tool file (VS project, Makefile, ...)
> > which is needed to launch itself :-]
>
> Why is it suicidal? The Makefile doesn't mean anything. All the
> intelligence is in CMakeLists.txt.
>
Yes I know.
By suicidal I mean that the built tool will remove its own file
(but not the CMakeLists.txt off course).
i.e:
make superclean
will succeed , but ...
make superclean; make
won't since "make superclean" will have thrown the "Makefile" away.
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130404/f6c3946e/attachment.htm>
More information about the CMake
mailing list