/usr/local/CPAN/Module-LocalBuild/Makefile.PL


# DESCRIPTION: Perl ExtUtils: Type 'perl Makefile.PL' to create a Makefile for this package
#
# Copyright 2000-2010 by Wilson Snyder.  This program is free software;
# you can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

require 5.005;
use ExtUtils::MakeMaker;
use Carp;
use Config;

sub MY::postamble {
    q{
DIST_DEFAULT += manifest

README: readme.texi
		-$(RM_RF) $@
		makeinfo $< --output $@ --no-headers --no-validate

## Maintainer use:
preexist:
		svnorcvs nexists $(DISTNAME)_$(VERSION_SYM)
		test -s README

tag:
		svnorcvs tag  $(DISTNAME)_$(VERSION_SYM)

maintainer-diff:
		svnorcvs diff $(DISTNAME)_$(VERSION_SYM)

maintainer-dist: README preexist dist tag
		svnorcvs release $(DISTVNAME).tar.gz

maintainer-clean: distclean
		-$(RM_RF) README

maintainer-copy: README

clean::
		-$(RM_RF) test_dir MANIFEST.bak Makefile.old
};
}

if ($Config{osname} =~ /MSWin/) {
    die "%Error: The Module::LocalBuild package does not yet support MSWindows.  Use Cygwin instead.\n";
}

WriteMakefile(
	      VERSION_FROM => 'lib/Module/LocalBuild.pm',
	      DISTNAME  => 'Module-LocalBuild',
	      NAME      => 'Module::LocalBuild',
	      AUTHOR	=> 'Wilson Snyder <wsnyder@wsnyder.org>',
	      ABSTRACT  => 'Detect module changes and rebuild into local area',
	      EXE_FILES => [qw(mlbuilder)],
	      PREREQ_PM => {
			    'Pod::Usage' => 1.34,
			},
	      'dist'    => {COMPRESS => 'gzip -9f',
			    SUFFIX   => '.gz',
			    DIST_DEFAULT => 'README all tardist',
			},
	      );