Results 1 to 4 of 4

Thread: Generated Makefiles clean-up

  1. #1
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Generated Makefiles clean-up

    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 **
    Last edited by tora; 3rd June 2009 at 13:10. Reason: wrong forum

  2. #2
    Join Date
    Apr 2009
    Posts
    21
    Thanked 3 Times in 2 Posts

    Default Re: Generated Makefiles clean-up

    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

  3. #3
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Generated Makefiles clean-up

    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.

  4. #4
    Join Date
    Apr 2009
    Posts
    21
    Thanked 3 Times in 2 Posts

    Default Re: Generated Makefiles clean-up

    you can control the behavior of confclean by yourself.
    see contents in projects.pro listed below:

    Qt Code:
    1. confclean.depends += clean
    2. confclean.commands =
    3. unix {
    4. confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
    5. (cd config.tests/unix/endian && $(MAKE) distclean); \
    6. (cd config.tests/unix/ipv6 && $(MAKE) distclean); \
    7. (cd config.tests/unix/largefile && $(MAKE) distclean); \
    8. (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
    9. (cd config.tests/x11/notype && $(MAKE) distclean); \
    10. (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
    11. (cd config.tests/unix/cups && $(MAKE) distclean); \
    12. (cd config.tests/unix/psql && $(MAKE) distclean); \
    13. (cd config.tests/unix/mysql && $(MAKE) distclean); \
    14. (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
    15. (cd config.tests/unix/nis && $(MAKE) distclean); \
    16. (cd config.tests/unix/nix && $(MAKE) distclean); \
    17. (cd config.tests/unix/odbc && $(MAKE) distclean); \
    18. (cd config.tests/unix/oci && $(MAKE) distclean); \
    19. (cd config.tests/unix/tds && $(MAKE) distclean); \
    20. (cd config.tests/unix/db2 && $(MAKE) distclean); \
    21. (cd config.tests/unix/ibase && $(MAKE) distclean); \
    22. (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
    23. (cd config.tests/unix/zlib && $(MAKE) distclean); \
    24. (cd config.tests/unix/libmng && $(MAKE) distclean); \
    25. (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
    26. (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
    27. (cd config.tests/unix/libpng && $(MAKE) distclean); \
    28. (cd config.tests/x11/xcursor && $(MAKE) distclean); \
    29. (cd config.tests/x11/xrender && $(MAKE) distclean); \
    30. (cd config.tests/x11/xrandr && $(MAKE) distclean); \
    31. (cd config.tests/x11/xkb && $(MAKE) distclean); \
    32. (cd config.tests/x11/xinput && $(MAKE) distclean); \
    33. (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
    34. (cd config.tests/x11/xinerama && $(MAKE) distclean); \
    35. (cd config.tests/x11/sm && $(MAKE) distclean); \
    36. (cd config.tests/x11/xshape && $(MAKE) distclean); \
    37. (cd config.tests/x11/opengl && $(MAKE) distclean); \
    38. $(DEL_FILE) config.tests/.qmake.cache; \
    39. $(DEL_FILE) src/core/global/qconfig.h; \
    40. $(DEL_FILE) src/core/global/qconfig.cpp; \
    41. $(DEL_FILE) mkspecs/qconfig.pri; \
    42. $(DEL_FILE) .qmake.cache; \
    43. (cd qmake && $(MAKE) distclean);
    44. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Clean project deletes makefile
    By Djony in forum Qt Programming
    Replies: 2
    Last Post: 7th December 2006, 10:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.