File: make

package info (click to toggle)
lmbench 3.0-a9%2Bdebian.1-9
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 3,028 kB
  • sloc: ansic: 12,328; perl: 6,531; sh: 2,784; makefile: 732
file content (20 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ "X$MAKE" != "X" ] && echo "$MAKE" | grep '`' > /dev/null
then
    MAKE=
fi

if [ X$MAKE = X ]
then	MAKE=make
	for p in `echo $PATH | sed 's/:/ /g'`
	do	if [ -f $p/gmake ]
		then	
		    if $p/gmake testmake > /dev/null 2>&1
		    then
			MAKE=$p/gmake
		    fi
		fi
	done
fi
echo $MAKE