]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - Makefile.PL
Add a testdeb target for testing with the debugger
[perl/modules/Scope-Upper.git] / Makefile.PL
index 20649ec763d8c34fc1c23dfc47016365980c8a49..3c0ff419f9371e0cc6d456b353ab42366d61980b 100644 (file)
@@ -25,6 +25,7 @@ WriteMakefile(
     ABSTRACT_FROM       => 'lib/Scope/Upper.pm',
     PL_FILES            => {},
     PREREQ_PM => {
+        'Exporter' => 0,
         'XSLoader' => 0,
     },
     dist          => {
@@ -34,3 +35,12 @@ WriteMakefile(
     },
     clean         => { FILES => 'Scope-Upper-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },
 );
+
+package MY;
+
+sub postamble {
+ return <<'POSTAMBLE';
+testdeb:
+       PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)
+POSTAMBLE
+}