Specify in a .pro file that the generated Makefile should run an command?
-
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 -
See QMAKE_EXTRA_TARGETS / QMAKE_EXTRA_COMPILERS and PRE_TARGETDEPS.
-
Check if this "thread":https://developer.qt.nokia.com/forums/viewthread/7537/ can help you...