(install-info): Check for gprof.info in build dir, fall back to srcdir. Depend
authorKen Raeburn <raeburn@cygnus>
Thu, 5 May 1994 23:24:33 +0000 (23:24 +0000)
committerKen Raeburn <raeburn@cygnus>
Thu, 5 May 1994 23:24:33 +0000 (23:24 +0000)
on it.

gprof/Makefile.in

index c6f6e3c14435fe82dc3b3bf2d5afe7c550de0cab..f7b7a0d87f34142449d5a4a60313328ed391c89d 100644 (file)
@@ -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: