From cd121d7abdb4f7d4f57fa9b79e32e8c2bf2352d0 Mon Sep 17 00:00:00 2001 From: Jeong Han Lee <jeonghan.lee@gmail.com> Date: Wed, 10 Apr 2019 22:17:44 +0200 Subject: [PATCH] add local installation path localMods --- configure/modules/CONFIG | 5 +++++ configure/modules/RULES_E3 | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/configure/modules/CONFIG b/configure/modules/CONFIG index 2e4bf28a..bd434649 100644 --- a/configure/modules/CONFIG +++ b/configure/modules/CONFIG @@ -1,6 +1,11 @@ # -*- mode: Makefile;-*- include $(REQUIRE_CONFIG)/CONFIG_REQUIRE + +ifneq (,$(findstring local,$(MAKECMDGOALS))) +E3_MODULES_PATH=$(TOP)/localMods +endif + include $(REQUIRE_CONFIG)/CONFIG_E3_PATH include $(REQUIRE_CONFIG)/CONFIG_E3_MAKEFILE include $(REQUIRE_CONFIG)/CONFIG_EPICS diff --git a/configure/modules/RULES_E3 b/configure/modules/RULES_E3 index 4bc23e07..d5ec1113 100644 --- a/configure/modules/RULES_E3 +++ b/configure/modules/RULES_E3 @@ -37,6 +37,12 @@ uninstall: conf $(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall' $(SUDO) find $(E3_SITELIBS_PATH) -xtype l -delete +localinstall: install_module + +localuninstall: conf + $(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall' + $(SUDO) rm -rf $(E3_MODULES_PATH) + ## Build the EPICS Module : $(E3_MODULE_NAME) # Build always the Module with the EPICS_MODULES_TAG build: conf checkout vlibs -- GitLab