ulu5
ulu5

Reputation: 437

Qt pro file call another makefile

Is there a way to use the .pro file in Qt to call another Makefile? For example, in a makefile, you could use:

make -f /other/path/Makefile

Is there anything like using the pro file for Qt?

Upvotes: 3

Views: 1625

Answers (1)

Chris
Chris

Reputation: 17535

Something like this should work:

QMAKE_EXTRA_TARGETS += other
PRE_TARGETDEPS += other
other.commands = make -f /other/path/Makefile

this will cause make -f /other/path/Makefile to be called as part of the make process, and will also give you the ability to type make other to just run that command.

Upvotes: 5

Related Questions