use ExtUtils::MakeMaker; WriteMakefile( 'INSTALL_BASE' => '@prefix@', 'NAME' => 'Subunit', 'VERSION' => '@SUBUNIT_VERSION@', 'test' => { 'TESTS' => 'tests/*.pl' }, 'PMLIBDIRS' => [ 'lib' ], 'EXE_FILES' => [ '@abs_srcdir@/subunit-diff' ], ); sub MY::postamble { <<'EOT'; check: # test uninstall_distcheck: rm -fr $(DESTINSTALLARCHLIB) rm MYMETA.yml VPATH = @srcdir@ .PHONY: uninstall_distcheck EOT }