4 if [ -z "${template}" ] ; then
5 make -f Makefile.dist Makefile.in
10 if [ ! -f xconfig/${host} ]; then
11 echo "No such host ${host}"
16 $1 == "XM_FILE=" { print $2 }' <xconfig/$host`
17 if [ "${targetfile}" = "/" ] ; then
23 if [ ! -f tconfig/${target} ]; then
24 echo "No such target ${target}"
28 if [ -z "${removing}" ] ; then
29 cat xconfig/${host} tconfig/${target} | awk '$1 == "#msg" {
34 $1 == "TM_FILE=" { print $2 }' <tconfig/$target`
35 if [ "${hostfile}" = "/" ] ; then
39 if [ ! -d readline ]; then
41 # This could be a symlink, but getting the name right (because
42 # srcdir can be either relative or absolute) would be hairy.
43 cp ${srcdir}/readline/Makefile readline
46 host_makefile_frag=xconfig/${host}
47 target_makefile_frag=tconfig/${target}
49 files="${hostfile} ${targetfile}"