* Makefile.am (uninstall-hook): New target.
authorTom Tromey <tromey@redhat.com>
Sun, 27 Jan 2002 21:58:49 +0000 (21:58 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 27 Jan 2002 21:58:49 +0000 (21:58 +0000)
ChangeLog
Makefile.am
Makefile.in

index 1d35f9e9133e7fb7be247d4dd6b608a259021ea7..22737e32f06cfd5560c8ffe213d393430466b77b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-27  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.am (uninstall-hook): New target.
+
 2002-01-24  Akim Demaille  <akim@epita.fr>
 
        * lib/install-sh: Update, from Autoconf.
index c714f19a45e9ba9a0d5350b241fa4c2bb99b2f52..46acc4bdd5c72886489b87dfc759c9550d862dca 100644 (file)
@@ -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
index 1076204f812da82be9e86c378fbed76a49f8eabd..cb7b8852bc9e6521b5759dbc4f4a2436b2a5d1e4 100644 (file)
@@ -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