my @files = ('genex-style.css');

push(@files,glob("*.pl"));

sub MY::postamble {
  my $text = '
install_samples: 
';
  $text .= "\tmkdir -p %%GENEX_EXAMPLE_DIR%%/\n";
  foreach (@files) {
    $text .= "\t%%GNUINSTALL%% -m 755 $_ %%GENEX_EXAMPLE_DIR%%/\n";
  }
  return $text;
}

WriteMakefile(
    'EXE_FILES'     => [@files],
    'NAME'	    => 'samples',
    'INST_LIB'      => '/dev/null',
);
