From 8e67b3292c452af53934770fd39cb20d9d30d86d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 26 Oct 2007 14:39:42 +0000 Subject: [PATCH] create custom targets in makefile (debug is first one) git-svn-id: https://perl-cwmp.googlecode.com/svn/trunk@115 836a5e1a-633d-0410-964b-294494ad4392 --- Makefile.PL | 5 +++++ lib/Module/Install/PRIVATE.pm | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 lib/Module/Install/PRIVATE.pm diff --git a/Makefile.PL b/Makefile.PL index b823572..136ad25 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,5 @@ +use lib './lib'; + use inc::Module::Install; name 'CWMP'; @@ -19,6 +21,9 @@ requires 'Term::Shelly' => '0.03'; build_requires 'Test::More'; +my_targets(); + auto_install; WriteAll; + diff --git a/lib/Module/Install/PRIVATE.pm b/lib/Module/Install/PRIVATE.pm new file mode 100644 index 0000000..1226843 --- /dev/null +++ b/lib/Module/Install/PRIVATE.pm @@ -0,0 +1,38 @@ +# Dobrica Pavlinusic, 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; -- 2.20.1