From 58e4e582cab310a7e4cf560e5b3a3f36300befc6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 27 Jan 2002 21:58:49 +0000 Subject: [PATCH] * Makefile.am (uninstall-hook): New target. --- ChangeLog | 4 ++++ Makefile.am | 7 +++++++ Makefile.in | 9 +++++++++ 3 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1d35f9e9..22737e32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-01-27 Tom Tromey + + * Makefile.am (uninstall-hook): New target. + 2002-01-24 Akim Demaille * lib/install-sh: Update, from Autoconf. diff --git a/Makefile.am b/Makefile.am index c714f19a..46acc4bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,6 +49,13 @@ install-exec-hook: ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \ done +uninstall-hook: + @for p in $(bin_SCRIPTS); do \ + f="`echo $$p|sed '$(transform)'`"; \ + fv="$$f-$(APIVERSION)"; \ + rm -f $(DESTDIR)$(bindir)/$$fv; \ + done + ################################################################ ## ## Everything past here is useful to the maintainer, but probably not diff --git a/Makefile.in b/Makefile.in index 1076204f..cb7b8852 100644 --- a/Makefile.in +++ b/Makefile.in @@ -542,6 +542,8 @@ mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti uninstall-am: uninstall-binSCRIPTS uninstall-info-am + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook uninstall-info: uninstall-info-recursive @@ -574,6 +576,13 @@ install-exec-hook: ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \ done +uninstall-hook: + @for p in $(bin_SCRIPTS); do \ + f="`echo $$p|sed '$(transform)'`"; \ + fv="$$f-$(APIVERSION)"; \ + rm -f $(DESTDIR)$(bindir)/$$fv; \ + done + ################################################################ # Some simple checks, and then ordinary check. These are only really -- 2.43.5