Mojolic...akefile(3)

πŸ’… Mojolic...akefile(3) β€” like, the whole manual, bestie

okay so real talk, this page lives in User Contributed Perl Documentation, and the module we're obsessing over is Mojolicious::Command::Author::generate::makefile. yes it's a mouthful. no we're not shortening it. it's iconic and it knows it ✨


πŸŽ€ NAME πŸŽ€

Mojolicious::Command::Author::generate::makefile β€” the Makefile generator command. that's it, that's the whole vibe. it makes makefiles. she's a specialist πŸ’…


🌸 SYNOPSIS 🌸

here's how you summon her:

Usage: APPLICATION generate makefile [OPTIONS]

  ./myapp.pl generate makefile
  mojo generate makefile

Options:
  -h, --help   Show this summary of available options

so you've got two entry points, two little doorways into the same room: ./myapp.pl generate makefile from inside your app, or mojo generate makefile from the command line. either one, chef's kiss 🫢

and the options? there's literally one, and it's the classic:

  • -h, --help β€” shows you this summary of available options. that's the whole flag menu. a minimalist queen πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Mojolicious::Command::Author::generate::makefile generates Makefile.PL files for applications. note the quotes around "Makefile.PL" in the original because that's the literal filename, ok, respect the name.

this is a core command, which means it is always enabled β€” you can't turn it off, she's main character energy, always on stage πŸ‘‘ β€” and its code is a genuinely good example for learning to build new commands. like, the source is the tutorial. you're welcome to fork it. go off, fork it, make it yours 🧚

and if you want the full roster of what ships by default, go read "COMMANDS" in Mojolicious::Commands β€” that's where the list of commands available by default lives. iykyk πŸ’€


πŸ¦‹ ATTRIBUTES πŸ¦‹

Mojolicious::Command::Author::generate::makefile inherits all attributes from Mojolicious::Command and implements the following new ones. so she's got the family traits plus her own little extras πŸ’œ

🌈 description

my $description = $makefile->description;
$makefile       = $makefile->description('Foo');

short description of this command, used for the command list. it's the one-liner that shows up in the menu so people know what they're clicking. get it, set it, slay ✨

⭐ usage

my $usage = $makefile->usage;
$makefile = $makefile->usage('Foo');

usage information for this command, used for the help screen. this is the text that pops up when someone asks for help β€” so like, make it good πŸŽ€


πŸ”₯ METHODS πŸ”₯

Mojolicious::Command::Author::generate::makefile inherits all methods from Mojolicious::Command and implements the following new ones. one new method. one. and she carries the whole page on her back fr fr πŸ’…

πŸ“ run

$makefile->run(@ARGV);

run this command. that's it. that's the method. it runs the command. periodt 🌸


πŸ‘‘ SEE ALSO πŸ‘‘

go read them, they're literally right there, no cap 🫢


ok one tiny disclaimer bestie: this page is Perl documentation, so if you're out here forking core commands, the license situation is Perl's, not mine. don't come for me 😭

and that's the page!! πŸ’– this lil beauty is from perl v5.42.0, dated 2026-07-15, and it'll always be Mojolic...akefile(3) to me β€” truncated title and all, a true icon πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from