This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Makefile `uninstall' improvement


It's presumably not important, but this change should have accompanied
the corresponding one to use the install-info program in the
`install-info' target.

Wed Jul 15 15:46:16 1998  Dave Love  <d.love@dl.ac.uk>

	* Makefile.in (uninstall): Try to use install-info.

===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.151
diff -u -p -r1.151 Makefile.in
--- Makefile.in	1998/07/09 22:55:40	1.151
+++ Makefile.in	1998/07/15 14:46:04
@@ -2506,7 +2506,10 @@ uninstall: lang.uninstall
 	-rm -rf $(mandir)/cccp$(manext)
 	-rm -rf $(mandir)/protoize$(manext)
 	-rm -rf $(mandir)/unprotoize$(manext)
-	-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
+	if $(SHELL) 'install-info --version' >/dev/null 2>&1; then \
+	  install-info --delete --info-dir=$(infodir) $(infodir)/gcc.info || : ; \
+	  install-info --delete --info-dir=$(infodir) $(infodir)/cpp.info || : ; \
+	else rm -f $(infodir)/cpp.info* $(infodir)/gcc.info* || : ; fi
 #
 # These targets are for the dejagnu testsuites. The file site.exp 
 # contains global variables that all the testsuites will use.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]