From a69f7e656214d2c73940e833bf066ef831a34f87 Mon Sep 17 00:00:00 2001
From: Jeong Han Lee <jeonghan.lee@gmail.com>
Date: Sat, 7 Apr 2018 15:46:17 +0200
Subject: [PATCH] add/fix RULES_E3 to clean up the broken symlink after
 uninstall

---
 configure/E3/RULES_E3 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure/E3/RULES_E3 b/configure/E3/RULES_E3
index c05dedc..6b5aa35 100644
--- a/configure/E3/RULES_E3
+++ b/configure/E3/RULES_E3
@@ -25,7 +25,7 @@ help:
 default: help
 
 
-## Install : $(E3_MODULE_NAME)
+## Install   : $(E3_MODULE_NAME)
 install: install_module install_links
 
 #install_module: uninstall 
@@ -35,6 +35,7 @@ install_module: uninstall db
 ## Uninstall : $(E3_MODULE_NAME)
 uninstall: conf
 	$(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall'
+	$(SUDO) find $(E3_SITELIBS_PATH) -xtype l -delete 
 
 ## Build the EPICS Module : $(E3_MODULE_NAME)
 # Build always the Module with the EPICS_MODULES_TAG
@@ -58,7 +59,7 @@ conf:
 
 .PHONY: init git-submodule-sync $(E3_MODULE_SRC_PATH)  checkout
 
-## Initialize : $(E3_MODULE_SRC_PATH) 
+## Initialize and Checkout : $(E3_MODULE_SRC_PATH) 
 init: git-submodule-sync $(E3_MODULE_SRC_PATH)  checkout
 
 git-submodule-sync:
-- 
GitLab