From: Ken Raeburn Date: Thu, 5 May 1994 23:24:33 +0000 (+0000) Subject: (install-info): Check for gprof.info in build dir, fall back to srcdir. Depend X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8afeb6eef00c20ebe3eadddbe37d78308592cae5;p=binutils-gdb.git (install-info): Check for gprof.info in build dir, fall back to srcdir. Depend on it. --- diff --git a/gprof/Makefile.in b/gprof/Makefile.in index c6f6e3c1443..f7b7a0d87f3 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -75,9 +75,14 @@ dvi: gprof.dvi check: installcheck: -install-info: - for i in *.info* ; do \ - $(INSTALL_DATA) $$i $(infodir)/$$i ; \ +install-info: gprof.info + if [ -r gprof.info ]; then \ + dir=. ; \ + else \ + dir=$(srcdir) ; \ + fi ; \ + for i in `cd $$dir; echo gprof.info*` ; do \ + $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \ done install: