factor out author targets into a plain Makefile.include
Matt S Trout [Sat, 10 Jul 2010 20:25:51 +0000 (21:25 +0100)]
maint/Makefile.PL.include
maint/Makefile.include [new file with mode: 0644]

index af16630..13fec7d 100644 (file)
@@ -1,19 +1,6 @@
 use strict;
 use warnings FATAL => 'all';
 
-my $POSTAMBLE = q{bump:
-       maint/bump-version
-       rm Makefile
-bumpminor:
-       maint/bump-version minor
-       rm Makefile
-bumpmajor:
-       maint/bump-version major
-       rm Makefile
-upload: $(DISTVNAME).tar$(SUFFIX)
-       cpan-upload $<
-};
-
 {
   package MY;
 
@@ -25,7 +12,7 @@ upload: $(DISTVNAME).tar$(SUFFIX)
     shift->SUPER::find_tests.' xt/*.t';
   }
 
-  sub postamble { $POSTAMBLE }
+  sub postamble { 'include maint/Makefile.include' }
 }
 
 {
diff --git a/maint/Makefile.include b/maint/Makefile.include
new file mode 100644 (file)
index 0000000..336847c
--- /dev/null
@@ -0,0 +1,11 @@
+bump:
+       maint/bump-version
+       rm Makefile
+bumpminor:
+       maint/bump-version minor
+       rm Makefile
+bumpmajor:
+       maint/bump-version major
+       rm Makefile
+upload: $(DISTVNAME).tar$(SUFFIX)
+       cpan-upload $<