[Qt-interest] QMAKE_DISTCLEAN

Stephen Jackson spjackson42 at gmail.com
Tue Dec 1 20:38:26 CET 2009


2009/12/1 Abhishek <abhishekworld at gmail.com>:
>
> Hi Stephen,
> Cant we do
> QMAKE_CLEAN += /path/to/file
>
> QT_DISTCLEAN += $${QMAKE_CLEAN}
>
> or
>
> QMAKE_CLEAN += /path/to/file
>
> QT_DISTCLEAN += /path/to/file
>
> could you please check and tell me if its works on your system.
>
>

I assume you mean QMAKE_DISTCLEAN as per previous posts as there isn't
a QT_DISTCLEAN.

Both forms work in the sense that they both generate:

clean:compiler_clean
        -$(DEL_FILE) $(OBJECTS)
        -$(DEL_FILE) /path/to/file
        -$(DEL_FILE) *~ core *.core

####### Sub-libraries

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

However, I don't follow why you want to do this. The distclean target
depends on the clean target, so why would you want to add files to be
removed by distclean that are already removed by clean?

-- 
Cheers,

Stephen Jackson



More information about the Qt-interest-old mailing list