Skip to content

Commit

Permalink
Have GitHub CI use correct 'make'.
Browse files Browse the repository at this point in the history
  • Loading branch information
trwyant committed Jan 31, 2024
1 parent 371d962 commit a71f962
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ jobs:
- name: Run ExtUtils::MakeMaker tests
run: |
perl Makefile.PL
make
make test
perl .github/workflows/make.PL
perl .github/workflows/make.PL test
- name: Run Module::Build tests
run: |
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/make.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env perl

use 5.006002;

use strict;
use warnings;

use Config;
use Getopt::Long 2.33 qw{ :config auto_version };
use Pod::Usage;

our $VERSION = '0.164';

my %opt;

GetOptions( \%opt,
help => sub { pod2usage( { -verbose => 2 } ) },
) or pod2usage( { -verbose => 0 } );

exec { $Config{make} } $Config{make}, @ARGV;

__END__
=head1 TITLE
make.PL - Perl front end to *make
=head1 SYNOPSIS
make.PL
make.PL test
make.PL --help
make.PL --version
=head1 OPTIONS
=head2 --help
This option displays the documentation for this script. The script then
exits.
=head2 --version
This option displays the version of this script. The script then exits.
=head1 DETAILS
This Perl script simply does an C<exec()> of C<$Config{make}>, passing
it all its arguments.
=head1 AUTHOR
Thomas R. Wyant, III F<wyant at cpan dot org>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2024 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl 5.10.0. For more details, see the full text
of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
=cut
# ex: set textwidth=72 :

0 comments on commit a71f962

Please sign in to comment.