From 226177cf1128cab339756a7afa663fd1efde3655 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Wed, 18 Aug 2004 20:22:59 +0000 Subject: [PATCH] "make uninstall" removes the symlinks bin/mcedit and bin/mcview. --- ChangeLog | 4 ++++ src/Makefile.am | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 13c5772c8..e3561feef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-08-18 Roland Illig + + * "make uninstall" removes the symlinks bin/mcedit and bin/mcview. + 2004-08-17 Roland Illig * configure.ac: The GCC warning flags are only used in diff --git a/src/Makefile.am b/src/Makefile.am index 77a8c01d1..3747b780e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -83,3 +83,9 @@ install_mcview: install_mcedit: cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit + +uninstall-hook: + rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview +if USE_EDIT + rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit +endif