QMAKE(1)
π QMAKE β the manual page, but make it bestie
okay so hi!! you're reading qmake(1), the general commands manual page for qmake, and bestie, it's the cross-platform makefile generator for Qt. yes. THE one. let's go π
β¨ SYNOPSIS β¨
qmake [mode] [options] [files]
πΈ DESCRIPTION πΈ
So qmake has two modes, and they're giving very different energy:
- one mode where it generates project files based on some heuristics
- and another mode where it generates makefiles
And the tea is: normally you don't even need to specify a mode, because makefile generation is the default for qmake. But you can use it if you wanna test qmake on an existing project. lowkey handy fr π
π¦ MODE π¦
-projectβ puts qmake into project file generation mode. In this mode qmake interprets files as files to be built. And the defaults? Obsessed with this list, here it is exactly:*.c;*.ui;*.y;*.l;*.ts;*.xlf;*.qrc;*.h;*.hpp;*.hh;*.hxx;*.H;*.cpp;*.cc;*.cxx;*.C.-makefileβ puts qmake into makefile generation mode, which is the default bestie. In this mode qmake interprets files as project files to be processed, and if it's skipped, qmake will try to find a project file in your current working directory. it's giving "I'll find it myself, don't worry" β¨
β οΈ WARNINGS OPTIONS β οΈ
-Wnoneβ turn off all warnings. but note: specific ones can be re-enabled by later-Woptions π-Wallβ turn on all the warnings. every single one. let them cook π₯-Wparserβ turn on parser warnings-Wlogicβ turn on logic warnings (on by default, so she's already here)-Wdeprecatedβ turn on deprecation warnings (also on by default, she's been here the whole time)
π OPTIONS π
-ofile β write output to file-dβ increase debug level-ttempl β overridesTEMPLATEas templ-tpprefix β overridesTEMPLATEso that prefix is prefixed into the value-helpβ displays a help text-vβ version information-afterβ all variable assignments after this will be parsed after[files]. not me rearranging the timeline π-norecursiveβ do not do a recursive search-recursiveβ do a recursive search-set<prop><value>β set persistent property-unset<prop>β unset persistent property-query<prop>β query persistent property. show all if<prop>is empty.-qtconffile β use file instead of looking forqt.conf-cachefile β use file as cache [makefile mode only]-specspec β use spec asQMAKESPEC[makefile mode only]-nocacheβ do not use a cache file [makefile mode only]-nodependβ do not generate dependencies [makefile mode only]-nomocβ do not generate moc targets [makefile mode only]-nopwdβ do not look for files in pwd [project mode only]
π«Ά heads up bestie: those last few are mode-locked. the[makefile mode only]ones only hit in makefile mode, and-nopwdis[project mode only]. respect the vibes.
π SEE ALSO π
/usr/share/qt5/doc/qmake/qmake-manual.html, assistant(1)
π AUTHOR π
This manual page was written by Brian Nelson <pyro@debian.org> based on the output of qmake -help. Frederik Schwarzer <schwarzerf@gmail.com> updated it for Qt 4.5.2. iconic behavior, honestly, thank you both πβ¨
okay that's the whole page!! π The Qt Company Ltd. dropped this one on 2017-04-09, it's QMAKE(1) and that's the whole manual β go forth and generate some makefiles, bestie, you've got this π¦ππ
π¦ where this page comes from
- debian bookworm: qt5-qmake-bin 5.15.8+dfsg-11+deb12u3 Β· LGPL-3.0-only OR GPL-2.0-only
- debian trixie: qt5-qmake-bin 5.15.15+dfsg-6+deb13u1 Β· LGPL-3.0-only OR GPL-2.0-only
- ubuntu jammy: qt5-qmake-bin 5.15.3+dfsg-2 Β· LGPL-3.0-only OR GPL-2.0-only
- ubuntu jammy: qt5-qmake-bin 5.15.3+dfsg-2ubuntu0.2 Β· LGPL-3.0-only OR GPL-2.0-only
- ubuntu noble: qt5-qmake-bin 5.15.13+dfsg-1ubuntu1 Β· LGPL-3.0-only OR GPL-2.0-only
- ubuntu questing: qt5-qmake-bin 5.15.17+dfsg-1ubuntu1
- ubuntu resolute: qt5-qmake-bin 5.15.18+dfsg-1ubuntu1 Β· LGPL-3.0-only OR GPL-2.0-only
- ubuntu stonking: qt5-qmake-bin 5.15.19+dfsg-2ubuntu2 Β· LGPL-3.0-only OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms