]> Dogcows Code - chaz/chatty/commitdiff
add convenience targets to build system
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 13 Oct 2011 03:52:20 +0000 (21:52 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 13 Oct 2011 03:52:20 +0000 (21:52 -0600)
Makefile.PL

index 40bca1ba3b02fe9d91a862a2efc13cd0fda3c05e..8c9e7c88865adfceeb729a8477beedb33b05da56 100644 (file)
@@ -20,6 +20,16 @@ requires 'Config::General'; # This should reflect the config file format you've
 test_requires 'Test::More' => '0.88';
 catalyst;
 
 test_requires 'Test::More' => '0.88';
 catalyst;
 
+# Add targets to run the developer server.
+sub MY::postamble {
+       return <<END;
+run: all
+       ./script/chatty_server.pl -r
+debug: all
+       ./script/chatty_server.pl -r -d
+END
+}
+
 install_script glob('script/*.pl');
 auto_install;
 WriteAll;
 install_script glob('script/*.pl');
 auto_install;
 WriteAll;
This page took 0.019691 seconds and 4 git commands to generate.