File: Makefile.PL

package info (click to toggle)
horae 066-3
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 17,272 kB
  • ctags: 1,656
  • sloc: perl: 64,718; lisp: 744; sh: 82; makefile: 67; ansic: 35
file content (34 lines) | stat: -rw-r--r-- 1,423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

## If this is being installed with Atoms of with Ifeffit, then
## $ENV{INSTALLING_WITH} will be set by Atoms' topmost Makefile.PL.
my $blib;
SWITCH : {
  $blib = "blib",       last SWITCH if (not $ENV{INSTALLING_WITH});
  $blib = "../blib",    last SWITCH if ($ENV{INSTALLING_WITH} eq 'atoms');
  $blib = "../blib",    last SWITCH if ($ENV{INSTALLING_WITH} eq 'horae');
  $blib = "../../blib", last SWITCH if ($ENV{INSTALLING_WITH} eq 'ifeffit');
};

#print "In CromerMann:  blib=$blib\n";

WriteMakefile(
	      'NAME'	       => 'Xray::Scattering',
	      'DISTNAME'       => 'Scattering',
	      'VERSION_FROM'   => 'Scattering.pm', # finds $VERSION
               dist            => { COMPRESS => 'gzip -f', SUFFIX => 'gz' },
	      'PL_FILES'       => {
				   'cromann.PL'    => 'cromann.db',
				   'waaskirf.PL'   => 'waaskirf.db',
				  },
	      'PM'             => {
				   'Scattering.pm' => "$blib/lib/Xray/Scattering.pm",
				   'None.pm'       => "$blib/lib/Xray/Scattering/None.pm",
				   'CromerMann.pm' => "$blib/lib/Xray/Scattering/CromerMann.pm",
				   'cromann.db'    => "$blib/lib/Xray/Scattering/cromann.db",
				   'WaasKirf.pm'   => "$blib/lib/Xray/Scattering/WaasKirf.pm",
				   'waaskirf.db'   => "$blib/lib/Xray/Scattering/waaskirf.db",
				  },
	     );