PREMAKE(1)
π
PREMAKE(1) β like, the manual page for premake, bestie
okay so hi, welcome to the premake manual page (section 1 of the manuals, if you're keeping track, and you should be π). Sit down, grab a strawberry, and let's get into it.
β¨ NAME β¨
Premake β a build script generator. that's it, that's the whole job description. it generates your build scripts. iconic behavior honestly.
πΈ SYNOPSIS πΈ
premake --target <str>
yeah that's the whole vibe. you run it, you point it at a target, it does its little thing. slay.
π¦ DESCRIPTION π¦
so here's the tea, bestie: premake lets you manage your whole project configuration in one single place, and still support those pesky IDE-addicted Windows coders and/or your cranky Linux command-line junkies. both. at the same time. no cap.
it lets you generate project files for tools that you do not even own. wild, right? it saves you the time you would otherwise spend manually keeping several different toolsets in sync (which, let's be real, is a nightmare and nobody wants that π«Ά). and it gives you an easy upgrade path as new versions of your favorite tools get released. future-proofing, periodt. β¨
π OPTIONS π
--filename β process the specified premake script file. if you don't specify one,"premake.lua"is assumed. (yes, default behavior, it just knows π)--cleanβ remove all binaries and build scripts. everything. gone. π--ccname β choose a C/C++ compiler, if supported by target. one of:gccβ GNU gcc compilerdmcβ Digital Mars C/C+ compiler (experimental) π
--dotnetname β choose a .NET compiler set, if supported by target. one of:msβ Microsoft (csc)monoβ Mono (mcs)mono2β Mono .NET 2.0 (gmcs)pnetβ Portable.NET (cscc)
--osname β generate files for a different operating system. one of:bsdβ OpenBSD, NetBSD, or FreeBSDlinuxβ Linuxmacosxβ MacOS Xwindowsβ Microsoft Windows
--targetname β generate input files for the specified toolset. one of:cb-gccβ Code::Blocks Studio with GCCgnuβ GNU Makefile for POSIX, MinGW, and Cygwinmonodevβ MonoDevelopsharpdevβ ICSharpCode SharpDevelopvs6β Microsoft Visual Studio 6vs2002β Microsoft Visual Studio 2002vs2003β Microsoft Visual Studio 2003vs2005β Microsoft Visual Studio 2005 (includes Express editions)
--versionβ display version information. know thyself, girlie πͺ--helpβ display this information. you're literally reading it bestie, but okay, respect π
π EXAMPLES π
generate Makefiles for gcc:
premake --target gnu
and that's the whole thing. one line. ate. π₯
π AUTHORS π
Jess Perkins and the Premake Project. legends, honestly. we love them. π
β HISTORY β
2008 β Initial version. born. the origin story. π§
okay that's the whole page, bestie, hope it was giving everything you needed β¨ this little masterpiece was written by Ryan Mulder on 17 April 2008, and it lives in the PREMAKE(1) manual. mwah, go build something cute π πΈ
π¦ where this page comes from
- fedora 43: premake 5.0.0-9.20251127gite38ef3f.fc43 Β· BSD-3-Clause
- fedora 44: premake 5.0.0-10.20251127gite38ef3f.fc44 Β· BSD-3-Clause
- fedora 44: premake 5.0.0-12.20270905gitddab06a.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms