create custom targets in makefile (debug is first one)
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 26 Oct 2007 14:39:42 +0000 (14:39 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 26 Oct 2007 14:39:42 +0000 (14:39 +0000)
git-svn-id: https://perl-cwmp.googlecode.com/svn/trunk@115 836a5e1a-633d-0410-964b-294494ad4392

Makefile.PL
lib/Module/Install/PRIVATE.pm [new file with mode: 0644]

index b823572..136ad25 100644 (file)
@@ -1,3 +1,5 @@
+use lib './lib';
+
 use inc::Module::Install;
 
 name           'CWMP';
 use inc::Module::Install;
 
 name           'CWMP';
@@ -19,6 +21,9 @@ requires      'Term::Shelly'  =>      '0.03';
 
 build_requires 'Test::More';
 
 
 build_requires 'Test::More';
 
+my_targets();
+
 auto_install;
 
 WriteAll;
 auto_install;
 
 WriteAll;
+
diff --git a/lib/Module/Install/PRIVATE.pm b/lib/Module/Install/PRIVATE.pm
new file mode 100644 (file)
index 0000000..1226843
--- /dev/null
@@ -0,0 +1,38 @@
+# Dobrica Pavlinusic, <dpavlin@rot13.org> 10/26/07 14:26:36 CEST
+package Module::Install::PRIVATE;
+
+use strict;
+use warnings;
+
+use base 'Module::Install::Base';
+our $VERSION = '0.01';
+
+=head1 NAME
+
+Module::Install::PRIVATE - Module Install Support
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+=head2 html_target
+
+=cut
+
+sub my_targets {
+       my ($self) = @_;
+
+       $self->postamble(<<"END_MAKEFILE");
+# --- $self section:
+
+debug:
+       ./bin/acs.pl -d -d -d 2>&1 | tee log
+
+END_MAKEFILE
+
+       warn "added my targets\n";
+
+       return $self;
+}
+
+1;