From: Matt S Trout Date: Sat, 10 Jul 2010 20:25:51 +0000 (+0100) Subject: factor out author targets into a plain Makefile.include X-Git-Tag: release_1.0.2~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a785a3b893f901ee24d2dcb0c3b057280a245af;p=p5sagit%2FModule-Metadata.git factor out author targets into a plain Makefile.include --- diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index af16630..13fec7d 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -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 index 0000000..336847c --- /dev/null +++ b/maint/Makefile.include @@ -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 $<