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 π
MojoliciousMojolicious::Guides- <https://mojolicious.org>
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
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms