[Qt-interest] QMAKE_DISTCLEAN

Stephen Jackson spjackson42 at gmail.com
Tue Dec 1 17:03:21 CET 2009


2009/12/1 Abhishek :
> Hi Rene,
> Docs says your can change it The question in my mind is if I set it for
> QMAKE_CLEAN so while make distclean it should call qmake clean 1st the the
> FORCE part of distclean isn't it? but its not Happening and the Qt DOC says
> you can set the QMAKE_DISTCLEAN but it doesn't affect the Makefile. but in
> case of QMAKE_CLEAN it changes the Makefile.
>

Setting QMAKE_DISTCLEAN as you indicated in your initial post does
change the Makefile on my setup. Qt 4.5.3, 64-bit Linux.

QMAKE_DISTCLEAN += /path/to/file # in my .pro file

This results in the following section in my Makefile.

distclean: clean
        -$(DEL_FILE) $(TARGET)
        -$(DEL_FILE) /path/to/file
        -$(DEL_FILE) Makefile

What version of Qt are you using? On what platform? Can you show us
the .pro file and generated Makefile?

-- 
Cheers,

Stephen Jackson



More information about the Qt-interest-old mailing list