What does this line mean in qmake .pro file?
TEMPLATE=aux
It is not documented, but seems to not cause an error or anything now that I tested it, and I've seen it used in a .pro.
Makefile is a set of commands (similar to terminal commands) with variable names and targets to create object file and to remove them. In a single make file we can create multiple targets to compile and to remove object, binary files. You can compile your project (program) any number of times by using Makefile.
A .pro file is actually the project file used by qmake to build your application, library, or plugin. It contains all the information, such as links to the headers and source files, libraries required by the project, custom-build processes for different platforms/environments, and so on.
The project file format used by qmake can be used to support both simple and fairly complex build systems. Simple project files use a straightforward declarative style, defining standard variables to indicate the source and header files that are used in the project.
Google returns "- Implemented "aux" template that allows making use of the INSTALLS variable without building anything. Needed for projects with QML entry point." From Digia's 4.8 release notes.
Also of interest: the patch which added this.
The TEMPLATE variable's value of aux is now documented at https://doc.qt.io/qt-5/qmake-variable-reference.html#template .
I have seen TEMPLATE = aux used in .pro files for Qt Installer Frameworks projects which create standalone executables which do not have to be run from Qt Creator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With