Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] qmake: Specify a makefile location / path
QtWS25 Last Chance

[Solved] qmake: Specify a makefile location / path

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 7.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asperamanca
    wrote on 19 Mar 2013, 11:04 last edited by
    #1

    I have found that you can change the name of the makefile using the MAKEFILE variable.
    But how do I specify in which path the makefile is to be generated? The project file is a 'source', that is, it is written by the developer. The makefile is an 'intermediate' (that is, it's required for compilation, but can be thrown away and re-generated). I want to keep those two types of files strictly separate. With everything else (moc, ui, obj,...) that's simple. How to do it with the makefile?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Mar 2013, 22:26 last edited by
      #2

      Hi,

      The use of shadow builds does already that (and is the default when using QtCreator), the source tree is not polluted by the generated/compiled files.

      Doesn't it fit your needs ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asperamanca
        wrote on 20 Mar 2013, 07:29 last edited by
        #3

        How do you specify the shadow build options within the .pro file? Because we have multiple targets, and only use Creator on some of them.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Mar 2013, 09:17 last edited by
          #4

          You don't specify it in the pro file. You call qmake from the folder used to do the shadow buld like this

          @MyWorkstation:shadow_build_folder$ qmake ../myproject/myproject.pro -r@

          then make/make install etc...

          Hope it helps

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Asperamanca
            wrote on 20 Mar 2013, 10:06 last edited by
            #5

            That helps. Thanks!

            1 Reply Last reply
            0

            5/5

            20 Mar 2013, 10:06

            • Login

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved