Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Specify in a .pro file that the generated Makefile should run an command?

    QML and Qt Quick
    3
    3
    1676
    Loading More Posts
    • 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.
    • S
      stefh last edited by

      Hi,

      the application I want to make depends on a header file (say version.h)
      that is generated by a command line tool (say genversion.sh)

      So I'd like the Makefile that is generated by 'qmake' to contain something like this:

      @ ($TARGET): version.h ...
      ...

      version.h:
           genversion.sh@
      

      Question: how to specify this in my .pro file?
      I could add an exec(getversion.sh) in the .pro file, but then getversion.sh is
      only called the first time when calling 'qmake', instead of during each 'make'

      Thx, br,
      Stef

      1 Reply Last reply Reply Quote 0
      • L
        lgeyer last edited by

        See QMAKE_EXTRA_TARGETS / QMAKE_EXTRA_COMPILERS and PRE_TARGETDEPS.

        1 Reply Last reply Reply Quote 0
        • L
          luca last edited by

          Check if this "thread":https://developer.qt.nokia.com/forums/viewthread/7537/ can help you...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post