4 XCOMM generate a Makefile from an Imakefile from inside or outside the sources
6 XCOMM $XConsortium: xmkmf.cpp,v 1.18 91/08/22 11:08:01 rws Exp $
8 usage="usage: $0 [-a] [top_of_sources_pathname [current_directory]]"
24 2) topdir=$1 curdir=$2 ;;
25 *) echo "$usage" 1>&2; exit 1 ;;
29 -*) echo "$usage" 1>&2; exit 1 ;;
32 if [ -f Makefile ]; then
33 echo mv Makefile Makefile.bak
34 mv Makefile Makefile.bak
37 if [ "$topdir" = "" ]; then
38 args="-DUseInstalled "CONFIGDIRSPEC
40 args="-I$topdir/config -DTOPDIR=$topdir -DCURDIR=$curdir"
47 echo "make Makefiles" &&
49 echo "make includes" &&