File: Makefile.PL

package info (click to toggle)
sdlperl 1.20.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,804 kB
  • ctags: 2,169
  • sloc: perl: 7,397; ansic: 232; makefile: 72; sh: 1
file content (20 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl

#
# Supported OSes
#

%OS = (
	linux 	=> "Makefile.linux",
	win32 	=> "Makefile.win32",
	freebsd => "Makefile.freebsd",
);

#
# Load applicable makefile
#

for (keys %OS ) {
	my $k = lc($_);
	require "$OS{$k}" && last if ($^O =~ /$k/i);
}