aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/util/x11mf.sh
blob: 2c44194d5bf5e8a4a5e907535646fbc636287740 (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
27
28
#!/bin/sh

# 
# generate a Makefile within the build tree
# 
# usage:  x11mf [treedir]
# 

if [ x$1 != x ]; then
	tree=$1
else
	tree=/x11
fi

dir=`pwd`
top=`(cd $tree; /bin/pwd)`
intree=no

case $dir in
	$top*)	intree=yes;;
esac

if [ $intree != yes ]; then
	echo "$0:  Must be underneath $tree"
	exit 1
fi

(cd ..; make SUBDIRS=`basename $dir` Makefiles)