summaryrefslogtreecommitdiffstats
path: root/perl/build
blob: 9707b2310361bc71c40faaa339818de55cf9d829 (plain)
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
#!/bin/sh

if [ $# -lt 2 ]; then
	echo "Usage: $0 makecmd perlflag args" 2>&1
	exit 1
fi

# Grab the make command
make=$1 && shift 1

# Should perl support be built?
perlflag=$1 && shift 1

if [ x"$perlflag" != x"YES" ]; then
	echo "Perl support not enabled. Edit Makefiles/config to enable it."
	exit 0
fi

if [ \! -f Makefile ]; then
	#
	# Build the Makefile
	#
	/usr/bin/env perl Makefile.PL
fi

$make MAKE=$make $*