Fri Feb 18 08:26:29 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * Makefile.in (install): Do the sed for program_transform_name
+       ourselves instead of worrying about INSTALL_XFORM.  This enables
+       users to override INSTALL_PROGRAM in the standard way.
+
+       * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
+       depend on Makefile.in.
+
        * defs.h, valprint.c: Make longest_to_int a function not a macro.
        Only test against INT_MIN if a LONGEST is bigger than an int.
 
 
 INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
 INSTALL_PROGRAM = $(INSTALL)
 INSTALL_DATA = $(INSTALL)
-INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
-INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
 
 AR = ar
 AR_FLAGS = qv
 # time it takes for make to check that all is up to date.
 # install-only is intended to address that need.
 install: all install-only
-install-only: 
-       $(INSTALL_XFORM) gdb $(bindir)/gdb
-       $(INSTALL_XFORM1) $(srcdir)/gdb.1 $(man1dir)/gdb.1
+install-only:
+       transformed_name=`echo gdb | sed '$(program_transform_name)'` ; \
+       if test "x$$transformed_name" = x; then \
+         transformed_name=gdb ; \
+       else \
+         true ; \
+       fi ; \
+       $(INSTALL_PROGRAM) gdb $(bindir)/$$transformed_name ; \
+       $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
        @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do 
 
 uninstall: force
 # would sometimes re-write it into $(srcdir)/c-exp.tab.c.
 
 # Remove bogus decls for malloc/realloc/free which conflict with everything
-# else.
+# else.  Strictly speaking c-exp.tab.c should therefore depend on
+# Makefile.in, but that was a pretty big annoyance.
 c-exp.tab.o: c-exp.tab.c
-c-exp.tab.c: c-exp.y Makefile.in
+c-exp.tab.c: c-exp.y
        $(YACC) $(YFLAGS) $(srcdir)/c-exp.y
        -sed -e '/extern.*malloc/d' \
             -e '/extern.*realloc/d' \
 # the dependency here on c-exp.tab.c is artificial.  Without this
 # dependency, a parallel make will attempt to build both at the same
 # time and the second yacc will pollute the first y.tab.c file.
-ch-exp.tab.c: ch-exp.y Makefile.in c-exp.tab.c
+ch-exp.tab.c: ch-exp.y c-exp.tab.c
        $(YACC) $(YFLAGS) $(srcdir)/ch-exp.y
        -sed -e '/extern.*malloc/d' \
             -e '/extern.*realloc/d' \
 # the dependency here on ch-exp.tab.c is artificial.  Without this
 # dependency, a parallel make will attempt to build both at the same
 # time and the second yacc will pollute the first y.tab.c file.
-m2-exp.tab.c: m2-exp.y Makefile.in ch-exp.tab.c
+m2-exp.tab.c: m2-exp.y ch-exp.tab.c
        $(YACC) $(YFLAGS) $(srcdir)/m2-exp.y
        -sed -e '/extern.*malloc/d' \
             -e '/extern.*realloc/d' \