#!/bin/sh# # generate a Makefile within the build tree# # usage: x11mf [treedir]# if[ x$1!= x ];thentree=$1elsetree=/x11fidir=`pwd`top=`(cd$tree; /bin/pwd)`intree=nocase$dirin$top*)intree=yes;;esacif[$intree!=yes];thenecho"$0: Must be underneath $tree"exit 1fi(cd ..; make SUBDIRS=`basename$dir` Makefiles)