aboutsummaryrefslogtreecommitdiff
path: root/gas/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-09-15 23:27:10 +0000
committerIan Lance Taylor <ian@airs.com>1992-09-15 23:27:10 +0000
commitefbfb612f4bda4e9f951b3fcd8de8f2b60284b51 (patch)
treed3ea898ca52505eca818fcbf2458889883b5730b /gas/Makefile.in
parent94a4a00523dff648f7b0775c845434fdaa153d06 (diff)
downloadgdb-efbfb612f4bda4e9f951b3fcd8de8f2b60284b51.zip
gdb-efbfb612f4bda4e9f951b3fcd8de8f2b60284b51.tar.gz
gdb-efbfb612f4bda4e9f951b3fcd8de8f2b60284b51.tar.bz2
Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in (install): if $(tooldir) exists, install as in $(tooldir)/bin.
Diffstat (limited to 'gas/Makefile.in')
-rw-r--r--gas/Makefile.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/Makefile.in b/gas/Makefile.in
index affef2e..04042b3 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -32,7 +32,7 @@ program_transform_name =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
-tooldir = $(libdir)
+tooldir = $(libdir)/$(target_alias)
datadir = $(prefix)/lib
mandir = $(prefix)/man
@@ -358,9 +358,13 @@ install:
-n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
rm -f $(bindir)/$$n; \
$(INSTALL_PROGRAM) as.new $(bindir)/$$n; \
- rm -f $(tooldir)/as; \
- ln $(bindir)/$$n $(tooldir)/as || cp $(bindir)/$$n $(tooldir)/as; \
- $(INSTALL_DATA) $(srcdir)/doc/as.1 $(man1dir)/$$n.1
+ $(INSTALL_DATA) $(srcdir)/doc/as.1 $(man1dir)/$$n.1; \
+ if [ -d $(tooldir) ]; then \
+ if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
+ rm -f $(tooldir)/bin/as; \
+ ln $(bindir)/$$n $(tooldir)/bin/as \
+ || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
+ else true; fi
# Cancel installation by deleting the installed files.
uninstall: