PREMAKE(1)

πŸ“¦
version 5.0.0 Β· 2 versions
, in fedora 43, fedora 44

πŸ’… 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 πŸ’–

  • --file name β€” 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. πŸ’€
  • --cc name β€” choose a C/C++ compiler, if supported by target. one of:
    • gcc β€” GNU gcc compiler
    • dmc β€” Digital Mars C/C+ compiler (experimental) πŸ™ˆ
  • --dotnet name β€” 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)
  • --os name β€” generate files for a different operating system. one of:
    • bsd β€” OpenBSD, NetBSD, or FreeBSD
    • linux β€” Linux
    • macosx β€” MacOS X
    • windows β€” Microsoft Windows
  • --target name β€” generate input files for the specified toolset. one of:
    • cb-gcc β€” Code::Blocks Studio with GCC
    • gnu β€” GNU Makefile for POSIX, MinGW, and Cygwin
    • monodev β€” MonoDevelop
    • sharpdev β€” ICSharpCode SharpDevelop
    • vs6 β€” Microsoft Visual Studio 6
    • vs2002 β€” Microsoft Visual Studio 2002
    • vs2003 β€” Microsoft Visual Studio 2003
    • vs2005 β€” 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