PDA

View Full Version : Generated Makefiles clean-up



tora
3rd June 2009, 12:11
Hi,
I've compiled qt from the sources passing to configure some switches.
Now I want to get rid of this configuration and re-compile all passing this time to configure some other switches.
I've tried:
make confclean
but most of the Makefiles generated by configure the fist time was called remain there.
My question is: which target should I specify to make to get rid of all the generated Makefiles and go back to a "virgin" source tree?

** yes I'm a newbie: I post to the wrong sub-forum. I would be glad if some admin will move this thread in the Qt->Installation and Deployment sub-forum. Thanks ind advance and sorry :o**

freezeblue
3rd June 2009, 14:30
Makefiles remains, contents changed. Just go on.
If you really really want a virgin version, unpack the source package again. That's not time-consuming:p

tora
4th June 2009, 10:53
Mmmhh.. that not exactly my case.
I did a git clone of the official repository and I compile it and install it under /opt/qt-latest. Then I checkout the tag v4.5.1, the latest official release, and wanted to compile it and put the result in /opt/qt-4.5.1, to be able to use both the latest version of the library and the latest official version.
The problem is that make confclean + configure + make led me to some compilation errors related, as far I understood, to some previously created Makefiles (Later I can post exactly the errors I got). That the reason why I'd like to have a make-target to remove all the generated makefiles.

Thank you anyway.

freezeblue
4th June 2009, 11:45
you can control the behavior of confclean by yourself.
see contents in projects.pro listed below:


confclean.depends += clean
confclean.commands =
unix {
confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
(cd config.tests/unix/endian && $(MAKE) distclean); \
(cd config.tests/unix/ipv6 && $(MAKE) distclean); \
(cd config.tests/unix/largefile && $(MAKE) distclean); \
(cd config.tests/unix/ptrsize && $(MAKE) distclean); \
(cd config.tests/x11/notype && $(MAKE) distclean); \
(cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
(cd config.tests/unix/cups && $(MAKE) distclean); \
(cd config.tests/unix/psql && $(MAKE) distclean); \
(cd config.tests/unix/mysql && $(MAKE) distclean); \
(cd config.tests/unix/mysql_r && $(MAKE) distclean); \
(cd config.tests/unix/nis && $(MAKE) distclean); \
(cd config.tests/unix/nix && $(MAKE) distclean); \
(cd config.tests/unix/odbc && $(MAKE) distclean); \
(cd config.tests/unix/oci && $(MAKE) distclean); \
(cd config.tests/unix/tds && $(MAKE) distclean); \
(cd config.tests/unix/db2 && $(MAKE) distclean); \
(cd config.tests/unix/ibase && $(MAKE) distclean); \
(cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
(cd config.tests/unix/zlib && $(MAKE) distclean); \
(cd config.tests/unix/libmng && $(MAKE) distclean); \
(cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
(cd config.tests/unix/libjpeg && $(MAKE) distclean); \
(cd config.tests/unix/libpng && $(MAKE) distclean); \
(cd config.tests/x11/xcursor && $(MAKE) distclean); \
(cd config.tests/x11/xrender && $(MAKE) distclean); \
(cd config.tests/x11/xrandr && $(MAKE) distclean); \
(cd config.tests/x11/xkb && $(MAKE) distclean); \
(cd config.tests/x11/xinput && $(MAKE) distclean); \
(cd config.tests/x11/fontconfig && $(MAKE) distclean); \
(cd config.tests/x11/xinerama && $(MAKE) distclean); \
(cd config.tests/x11/sm && $(MAKE) distclean); \
(cd config.tests/x11/xshape && $(MAKE) distclean); \
(cd config.tests/x11/opengl && $(MAKE) distclean); \
$(DEL_FILE) config.tests/.qmake.cache; \
$(DEL_FILE) src/core/global/qconfig.h; \
$(DEL_FILE) src/core/global/qconfig.cpp; \
$(DEL_FILE) mkspecs/qconfig.pri; \
$(DEL_FILE) .qmake.cache; \
(cd qmake && $(MAKE) distclean);
}