This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] doc/Makefile.in install
Elena Zannoni writes:
> Andrew Cagney writes:
> >
> > > I think, at some point in the distant past, it was controversial
> > > whether packages should install their info files by default. I think
> > > that was back when disks were much smaller than they are now.
> > > Nowadays most packages install their info by default, so there's no
> > > reason for GDB not to do so as well.
> >
> > So that's the reason! I knew there was one but couldn't remember what
> > it was.
> >
> > Elena, also note:
> > http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=723
> > http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=245
> > http://www.gnu.org/prep/standards_55.html#SEC55
> >
> > Andrew
> >
>
> Argh. There is way more than what meets the eye. Ok, I'll look into
> this a bit more.
>
Hmmm... how about this? It seems to do the right thing for me.
Can somebody give it a try on their system?
thanks
Elena
2002-11-22 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (install-info): Run the install-info command as part
of the post install steps only.
(uninstall-info): New target.
(uninstall): New target.
Index: Makefile.in
===================================================================
RCS file: /cvs/uberbaum/gdb/doc/Makefile.in,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile.in
--- Makefile.in 22 Nov 2002 21:02:20 -0000 1.24
+++ Makefile.in 23 Nov 2002 01:39:31 -0000
@@ -156,6 +156,7 @@ install-info: $(INFO_DEPS)
else : ; fi; \
done; \
done
+ $(POST_INSTALL)
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
list='$(INFO_DEPS)'; \
for file in $$list; do \
@@ -164,6 +165,22 @@ install-info: $(INFO_DEPS)
done; \
else : ; fi
+uninstall-info:
+ $(PRE_UNINSTALL)
+ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+ ii=yes; \
+ else ii=; fi; \
+ list='$(INFO_DEPS)'; \
+ for file in $$list; do \
+ test -z "$$ii" \
+ || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
+ done
+ $(NORMAL_UNINSTALL)
+ list='$(INFO_DEPS)'; \
+ for file in $$list; do \
+ (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
+ done
+
install-html: html
for i in *.html ; do \
$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
@@ -433,3 +450,5 @@ maintainer-clean realclean: distclean
rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
install: install-info
+
+uninstall: uninstall-info