From 21a7ba9b7e7e97854678677c7da4b42bd9faec66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 12 Mar 2014 15:56:11 +0100 Subject: [PATCH] build: Remove libguile-2.0-gdb.scm and $infodir/dir upon uninstall. * libguile/Makefile.am (uninstall-data-hook): New target. --- libguile/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libguile/Makefile.am b/libguile/Makefile.am index db93929a7..dd6d662d0 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -475,6 +475,12 @@ $(DESTDIR)$(libdir)/$$libname-gdb.scm"; \ $(INSTALL_DATA) "$<" \ "$(DESTDIR)$(libdir)/$$libname-gdb.scm" +# Remove the GDB support file and the Info 'dir' file that +# 'install-info' 5.x installs. +uninstall-hook: + -rm "$(DESTDIR)$(libdir)/libguile-@GUILE_EFFECTIVE_VERSION@"*-gdb.scm + -rm -f "$(DESTDIR)$(infodir)/dir" + ## This is kind of nasty... there are ".c" files that we don't want to ## compile, since they are #included. So instead we list them here. ## Perhaps we can deal with them normally once the merge seems to be