From 238aa238e25b5223569136177fc57fcb87f2ef16 Mon Sep 17 00:00:00 2001 From: "David D. Zuhn" Date: Wed, 16 Jun 1993 00:45:43 +0000 Subject: [PATCH] * Makefile.in (install, install-info): remove parentdir support, use INSTALL_XFORM; define INSTALL_XFORM --- binutils/ChangeLog | 5 +++++ binutils/Makefile.in | 29 +++++++++++------------------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 43a156702ae..5e3eaaf7399 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com) + + * Makefile.in (install, install-info): remove parentdir support, + use INSTALL_XFORM; define INSTALL_XFORM + Thu Jun 10 17:29:21 1993 Per Bothner (bothner@cygnus.com) * objcopy.c (copy_object): Fix bad size passed to xmalloc(). diff --git a/binutils/Makefile.in b/binutils/Makefile.in index ee325fd411f..c59298fa7fc 100644 --- a/binutils/Makefile.in +++ b/binutils/Makefile.in @@ -47,6 +47,8 @@ SHELL = /bin/sh INSTALL = install -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) +INSTALL_XFORM = $(INSTALL) -t=$(program_tranform_name) +INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 AR = ar AR_FLAGS = qv @@ -107,7 +109,7 @@ OPCODEDIR = ./../opcodes #### host and target dependant Makefile fragments come in here. ### -INCLUDES = -I. -I$(srcdir) -I$(BASEDIR)/include -I$(BASEDIR)/bfd +INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BASEDIR)/include -I$(BASEDIR)/bfd .c.o: $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $< @@ -162,10 +164,10 @@ FLAGS_TO_PASS = \ all: $(ADDL_LIBS) $(PROGS) testsuite: - if [ -d testsuite ]; then \ - (rootme=`pwd`/ ; export rootme ; \ - rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ - cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \ + if [ -f testsuite/Makefile.in ]; then \ + (rootme=`pwd`/ ; export rootme ; \ + rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ + cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \ else true ; fi check: force @@ -366,17 +368,11 @@ TAGS: force etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc] install: all - -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi - -for i in $(PROGS) ; do \ - $(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \ + for i in $(PROGS) ; do \ + $(INSTALL_XFORM) $$i $(bindir)/$$i ; \ done - -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi - -for i in $(MANPAGES) ; do \ - $(INSTALL_DATA) $(srcdir)/$$i.1 $(man1dir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t`.1 ; \ + for i in $(MANPAGES) ; do \ + $(INSTALL_XFORM1) $(srcdir)/$$i.1 $(man1dir)/$$i.1 ; \ done -if [ -d $(tooldir) ]; then \ if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \ @@ -388,9 +384,6 @@ install: all else true; fi install-info: info - -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi for i in *.info* ; do \ $(INSTALL_DATA) $$i $(infodir)/$$i ; \ done -- 2.30.2