[PATCH libXaw] Remove symlinks created in install-exec-hook during uninstall
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Sun Aug 8 20:10:00 PDT 2010
From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
Makefile.am | 3 +++
src/Makefile.am | 14 ++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 5eed6e3..25ad354 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,6 +34,9 @@ EXTRA_DIST = \
install-exec-hook:
cd $(DESTDIR)$(libdir) && rm -f libXaw. at LIBEXT@ && $(LN_S) $(DEFAULT_LIB) libXaw. at LIBEXT@
+uninstall-local:
+ -rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@
+
.PHONY: ChangeLog INSTALL
diff --git a/src/Makefile.am b/src/Makefile.am
index 2aa9980..a77bb13 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -85,6 +85,13 @@ else
-rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.6
(cd $(DESTDIR)$(libdir) && ln -s libXaw6. at LIBEXT@.6 libXaw. at LIBEXT@.6)
endif
+
+uninstall-local::
+if PLATFORM_DARWIN
+ -rm -f $(DESTDIR)$(libdir)/libXaw.6. at LIBEXT@
+else
+ -rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.6
+endif
endif
endif
@@ -114,6 +121,13 @@ else
-rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.7
(cd $(DESTDIR)$(libdir) && ln -s libXaw7. at LIBEXT@.7 libXaw. at LIBEXT@.7)
endif
+
+uninstall-local::
+if PLATFORM_DARWIN
+ -rm -f $(DESTDIR)$(libdir)/libXaw.7. at LIBEXT@
+else
+ -rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.7
+endif
endif
endif
--
1.7.1
More information about the xorg-devel
mailing list