diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1995-07-26 04:31:28 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1995-07-26 04:31:28 +0000 |
commit | 649d8fdf03da3053239f9b3f9f9d5537ea9b5134 (patch) | |
tree | 7c535c23204e49d0d68ef9180aa2edd36fad4ae9 /cfg-ml-pos.in | |
parent | f27ffb51f544e79fe110af75c84879bae35c5096 (diff) | |
download | gdb-649d8fdf03da3053239f9b3f9f9d5537ea9b5134.zip gdb-649d8fdf03da3053239f9b3f9f9d5537ea9b5134.tar.gz gdb-649d8fdf03da3053239f9b3f9f9d5537ea9b5134.tar.bz2 |
* cfg-ml-pos.in (MULTITOP): Trim excess trailing "/.".
Diffstat (limited to 'cfg-ml-pos.in')
-rw-r--r-- | cfg-ml-pos.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cfg-ml-pos.in b/cfg-ml-pos.in index 4e2bde6..b45c3d8 100644 --- a/cfg-ml-pos.in +++ b/cfg-ml-pos.in @@ -12,10 +12,13 @@ if [ -z "${with_multisubdir}" ]; then multisubdir= else multisubdir="/${with_multisubdir}" - dotdot=`echo ${multisubdir} | sed -e 's:/[^/]*:../:g'` + dotdot=`echo ${with_multisubdir} | sed -e 's:[^/]*:..:g'` # TOP is used by newlib and should not be used elsewhere for this purpose. - sed -e "s:^TOP[ ]*=[ ]*\([./]*\)[ ]*$:TOP = ${dotdot}\1:" \ - -e "s:^MULTITOP[ ]*=[ ]*\([./]*\)[ ]*$:MULTITOP = ${dotdot}\1:" \ + # MULTITOP is the proper one to use. + # FIXME: newlib needs to be updated to use MULTITOP so we can delete TOP. + # Newlib may wish to continue to use TOP for its own purposes of course. + sed -e "s:^TOP[ ]*=[ ]*\([./]*\)[ ]*$:TOP = ${dotdot}/\1:" \ + -e "s:^MULTITOP[ ]*=.*$:MULTITOP = ${dotdot}:" \ ${Makefile} > Makefile.tem rm -f ${Makefile} mv Makefile.tem ${Makefile} @@ -25,7 +28,7 @@ fi # and lists the subdirectories to recurse into. # MULTISUBDIR is non-empty in each cpu subdirectory's Makefile # (eg: newlib/h8300h/Makefile) and is the installed subdirectory name with -# a trailing '/'. +# a leading '/'. # MULTIDO is used for targets like all, install, and check where # $(FLAGS_TO_PASS) augmented with the subdir's compiler option is needed. # MULTICLEAN is used for the *clean targets. |