From 8afeb6eef00c20ebe3eadddbe37d78308592cae5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 5 May 1994 23:24:33 +0000 Subject: [PATCH] (install-info): Check for gprof.info in build dir, fall back to srcdir. Depend on it. --- gprof/Makefile.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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: -- 2.30.2