Brought forward from p3:
authorIan Lance Taylor <ian@airs.com>
Tue, 1 Sep 1992 01:14:04 +0000 (01:14 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 1 Sep 1992 01:14:04 +0000 (01:14 +0000)
Sun Aug 30 21:24:46 1992  Ian Lance Taylor  (ian@cygnus.com)

* Makefile.in: map "as" through program_transform_name when
installing.

gas/ChangeLog
gas/Makefile.in
gas/doc/ChangeLog

index bac3bd0a9ebeb038e0436df69611bed6338b2f65..e9846340f8eae230e56542de128c2e9b8318f369 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug 30 21:24:46 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in: map "as" through program_transform_name when
+       installing.
+
 Sat Aug 29 12:11:12 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
 
        * Makefile.in (as.new): Depend on LOCAL_LOADLIBES.
index 3f3ffcf9c704daa3df4ec747faa7d8b0c8d92824..479e1706583a3d1c3e6132a01c4982ca72376379 100644 (file)
@@ -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.
 
index 5096fc358819fbba6d46887184f89281292188ce..3826d8b48c86743cc413a89900e1b5960b000e93 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug 30 21:26:05 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in: map "as" through program_transform_name when
+       installing.
+
 Tue Aug 18 14:19:01 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * Makefile.in: always create installation directories.
This page took 0.026961 seconds and 4 git commands to generate.