From: Jesse Luehrs Date: Fri, 7 Jan 2011 21:05:20 +0000 (-0600) Subject: redirect 'make dist' and 'make install' to dzil X-Git-Tag: 1.9903~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=093f4bba680b2d52f60c9f5b06383b8e183e98f2;p=gitmo%2FMoose.git redirect 'make dist' and 'make install' to dzil --- diff --git a/inc/MMHelper.pm b/inc/MMHelper.pm index 02bf893..98bbdbb 100644 --- a/inc/MMHelper.pm +++ b/inc/MMHelper.pm @@ -53,6 +53,23 @@ package MY; use Config; +my $message; +BEGIN { +$message = <<'MESSAGE'; + + ********************************* ERROR ************************************ + + This module uses Dist::Zilla for development. This Makefile.PL will let you + run the tests, but should not be used for installation or building dists. + Building a dist should be done with 'dzil build', installation should be + done with 'dzil install', and releasing should be done with 'dzil release'. + + **************************************************************************** + +MESSAGE +$message =~ s/^(.*)$/\t\$(NOECHO) echo "$1";/mg; +} + sub const_cccmd { my $ret = shift->SUPER::const_cccmd(@_); return q{} unless $ret; @@ -73,6 +90,23 @@ sub postamble { $(OBJECT) : mop.h EOF } + +sub install { + return <