#!/usr/local/bin/perl -w

#use lib '/home/joshua/Maker-2.05';
require Maker::Package;
require Maker::Rules;

my $pk = new Maker::Package(top=>'FileExtra');
$pk->pm_2version('LinkTree.pm');
$pk->default_targets('all');

my @scripts = qw(linktree prunetree manifest);
my $inst = {
    bin => [@scripts],
    lib => ['Checksum/', 'Checksum/Any.pm',
	    'File/', 'File/LinkTree.pm', 'File/Manifest.pm'],
};

my $r = Maker::Rules->new($pk, 'perl-module');
my @bld = map { $r->HashBang('perl', $_) } @scripts;
$pk->a(new Maker::Seq(@bld,
		      $r->blib($inst), 
		      $r->populate_blib($inst),
		      new Maker::Unit('all', sub {}),
		      ),
       $r->test_harness,
       $r->install($inst),
       $r->uninstall($inst),
       );
$pk->load_argv_flags;
$pk->top_go(@ARGV);
