2 package Module::Install::WriteAll;
5 use Module::Install::Base ();
7 use vars qw{$VERSION @ISA $ISCORE};
10 @ISA = qw{Module::Install::Base};
24 $self->sign(1) if $args{sign};
25 $self->admin->WriteAll(%args) if $self->is_admin;
27 $self->check_nmake if $args{check_nmake};
28 unless ( $self->makemaker_args->{PL_FILES} ) {
29 # XXX: This still may be a bit over-defensive...
30 unless ($self->makemaker(6.25)) {
31 $self->makemaker_args( PL_FILES => {} ) if -f 'Build.PL';
35 # Until ExtUtils::MakeMaker support MYMETA.yml, make sure
36 # we clean it up properly ourself.
37 $self->realclean_files('MYMETA.yml');
39 if ( $args{inline} ) {
42 $self->Makefile->write;
45 # The Makefile write process adds a couple of dependencies,
46 # so write the META.yml files after the Makefile.
51 # Experimental support for MYMETA
52 if ( $ENV{X_MYMETA} ) {
53 if ( $ENV{X_MYMETA} eq 'JSON' ) {
54 $self->Meta->write_mymeta_json;
56 $self->Meta->write_mymeta_yaml;