4 XCOMM make a Makefile from an Imakefile from inside or outside the sources
6 XCOMM $XConsortium: xmkmf.cpp /main/22 1996/09/28 16:17:05 rws $
8 usage="usage: $0 [-a] [top_of_sources_pathname [current_directory]]"
10 configdirspec=CONFIGDIRSPEC
25 2) topdir=$1 curdir=$2 ;;
26 *) echo "$usage" 1>&2; exit 1 ;;
30 -*) echo "$usage" 1>&2; exit 1 ;;
33 if [ -f Makefile ]; then
34 echo mv -f Makefile Makefile.bak
35 mv -f Makefile Makefile.bak
38 if [ "$topdir" = "" ]; then
39 args="-DUseInstalled "$configdirspec
41 args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir"
48 echo "make Makefiles" &&
50 echo "make includes" &&