aboutsummaryrefslogtreecommitdiff
path: root/gas/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-09-01 01:14:04 +0000
committerIan Lance Taylor <ian@airs.com>1992-09-01 01:14:04 +0000
commit7e10f53ccf9100e8191e7cc18af0c165f7973ea6 (patch)
treed6543cfe4af3d75abadf5074427810cac3e8fa01 /gas/Makefile.in
parent3790af1d3374eea688e88ac353083b557fc44834 (diff)
downloadgdb-7e10f53ccf9100e8191e7cc18af0c165f7973ea6.zip
gdb-7e10f53ccf9100e8191e7cc18af0c165f7973ea6.tar.gz
gdb-7e10f53ccf9100e8191e7cc18af0c165f7973ea6.tar.bz2
Brought forward from p3:
Sun Aug 30 21:24:46 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in: map "as" through program_transform_name when installing.
Diffstat (limited to 'gas/Makefile.in')
-rw-r--r--gas/Makefile.in22
1 files changed, 10 insertions, 12 deletions
diff --git a/gas/Makefile.in b/gas/Makefile.in
index 3f3ffcf..479e170 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -28,8 +28,7 @@ srcdir = .
prefix = /usr/local
-program_prefix =
-program_suffix =
+program_transform_name =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
@@ -356,19 +355,18 @@ install:
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
- -rm -f $(bindir)/$(program_prefix)as$(program_suffix)
- $(INSTALL_PROGRAM) as.new $(bindir)/$(program_prefix)as$(program_suffix)
- -rm -f $(tooldir)/as
- ln $(bindir)/$(program_prefix)as$(program_suffix) $(tooldir)/as
- -rm -f $(man1dir)/$(program_prefix)as$(program_suffix).1
- $(INSTALL_DATA) $(srcdir)/doc/as.1 $(man1dir)/$(program_prefix)as$(program_suffix).1
+ -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
# Cancel installation by deleting the installed files.
uninstall:
- -rm -rf $(libsubdir)
- -rm -rf $(bindir)/as
- -rm -rf $(mandir)/gas.$(manext)
-
+ -n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
+ rm -f $(bindir)/$$n; \
+ rm -f $(mandir)/$$n.1
# These exist for maintenance purposes.