File: Makefile.PL

package info (click to toggle)
pdl 1.99988-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,908 kB
  • ctags: 3,426
  • sloc: perl: 15,352; ansic: 7,852; fortran: 3,327; makefile: 39; sh: 19
file content (15 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ExtUtils::MakeMaker;
WriteMakefile(NAME => "PDL::PP",
	PM => {
	 map {($_ => '$(INST_LIBDIR)/'.$_)}
	 	<*.pm>, <PP/*.pm>, 'PP/Dump.pm'
	},
	clean => {FILES => "PP/Dump.pm PP/Dump.pm.tmp"}
);

sub MY::postamble {
'PP/Dump.pm: PP/dump.pp
	$(PERL) PP/dump.pp > PP/Dump.pm.tmp
'.($^O =~ /win32/i ? '	move PP\Dump.pm.tmp PP\Dump.pm' :
'	mv PP/Dump.pm.tmp PP/Dump.pm')."\n";
}