This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[RFA] Patches for "make install-info"
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [RFA] Patches for "make install-info"
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Tue, 16 May 2000 12:58:56 -0400 (EDT)
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
While testing the various "install*" targets, I bumped up into 2 minor
problems: mmalloc.info was being installed without making sure the
Info directory existed, and install-info was not being run to update
the DIR file.
Here are the patches to fix that. (The command to run install-info
was shamelessly stolen from bfd/Makefile.in, i.e. from Automake.)
Okay to commit?
2000-05-16 Eli Zaretskii <eliz@is.elta.co.il>
* Makefile.in (install-info): Make sure $(infodir) exists. Run
install-info program on the installed Info files.
--- mmalloc/Makefile.i~1 Fri Mar 17 14:32:50 2000
+++ mmalloc/Makefile.in Tue May 16 19:21:30 2000
@@ -110,8 +110,13 @@
rm -f mmalloc.?? mmalloc.??s mmalloc.log mmalloc.aux mmalloc.toc
install-info: info
+ $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
if test ! -f mmalloc.info ; then cd $(srcdir); fi; \
$(INSTALL_DATA) mmalloc.info $(infodir)/mmalloc.info
+ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+ echo " install-info --info-dir=$(infodir) $(infodir)/mmalloc.info";\
+ install-info --info-dir=$(infodir) $(infodir)/mmalloc.info || :;\
+ else : ; fi
check: test1.c
# $(CC) -g $(srcdir)/test1.c libmmalloc.a
2000-05-16 Eli Zaretskii <eliz@is.elta.co.il>
* Makefile.in (install-info): Run install-info on installed Info
files.
--- gdb/doc/Makefile.i~3 Fri Apr 21 19:43:34 2000
+++ gdb/doc/Makefile.in Tue May 16 19:26:08 2000
@@ -117,6 +117,13 @@
for i in *.info* ; do \
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
done
+ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+ list='gdb.info gdbint.info stabs.info'; \
+ for file in $$list; do \
+ echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
+ install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
+ done; \
+ else : ; fi
install-html: html
for i in *.html ; do \