Skip to content
Snippets Groups Projects
Commit eedd146e authored by Jeong Han Lee's avatar Jeong Han Lee
Browse files

rename local to cell, support .local files in order to override

parent 3ac4bdda
No related branches found
No related tags found
No related merge requests found
# -*- mode: Makefile;-*-
include $(REQUIRE_CONFIG)/CONFIG_REQUIRE
ifneq (,$(findstring local,$(MAKECMDGOALS)))
E3_MODULES_PATH=$(TOP)/localMods
endif
include $(REQUIRE_CONFIG)/CONFIG_CELL
include $(REQUIRE_CONFIG)/CONFIG_E3_PATH
include $(REQUIRE_CONFIG)/CONFIG_E3_MAKEFILE
include $(REQUIRE_CONFIG)/CONFIG_EPICS
......
# TOP is e3-MODULENAME
ifneq (,$(findstring cell,$(MAKECMDGOALS)))
## Default is e3-MODULENAME/cellMods
E3_CELL_PATH=$(TOP)/cellMods
##
## Allow local file in $(TOP)/configure
## local file in $(TOP)/../
##
## Useful if one would like to install many different modules in
## a specific directory for massive debugging purpose
##
-include $(TOP)/../CONFIG_CELL.local
-include $(TOP)/configure/CONFIG_CELL.local
E3_MODULES_PATH=$(E3_CELL_PATH)
endif
......@@ -37,9 +37,9 @@ uninstall: conf
$(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall'
$(SUDO) find $(E3_SITELIBS_PATH) -xtype l -delete
localinstall: install_module
cellinstall: install_module
localuninstall: conf
celluninstall: conf
$(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall'
$(SUDO) rm -rf $(E3_MODULES_PATH)
......
......@@ -28,3 +28,4 @@ else
$(QUIET)tree -L $(LEVEL) $(E3_MODULES_PATH)/$(E3_MODULE_NAME)
endif
cellvars: vars
......@@ -426,7 +426,7 @@ function loadFiles
;;
( -l )
shift
printf "epicsEnvSet EPICS_DRIVER_PATH ${EPICS_DRIVER_PATH}:%s\n", $1
printf "epicsEnvSet EPICS_DRIVER_PATH %s:${EPICS_DRIVER_PATH}\n", $1
;;
( -* )
printf "Unknown option $1\n\n" >&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment