Skip to content
Snippets Groups Projects
Commit 9dba0708 authored by Simon Rose's avatar Simon Rose
Browse files

Added some extra targets

parent 469edd19
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,12 @@ ...@@ -3,10 +3,12 @@
## Installs the module in a local directory $(E3_CELL_PATH) ## Installs the module in a local directory $(E3_CELL_PATH)
cellinstall: install_module versions fix_permissions cellinstall: install_module versions fix_permissions
## Remove the module from the local directory $(E3_CELL_PATH)
celluninstall: conf celluninstall: conf
$(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall' $(QUIET) $(SUDOBASH) '$(E3_MODULE_MAKE_CMDS) uninstall'
#$(SUDO) rm -rf $(E3_MODULES_PATH) #$(SUDO) rm -rf $(E3_MODULES_PATH)
## Print relevant environment variables for the local install
cellvars: vars cellvars: vars
ifneq (,$(findstring cell,$(MAKECMDGOALS))) ifneq (,$(findstring cell,$(MAKECMDGOALS)))
......
...@@ -51,12 +51,13 @@ debug: conf ...@@ -51,12 +51,13 @@ debug: conf
$(QUIET) $(E3_MODULE_MAKE_CMDS) debug $(QUIET) $(E3_MODULE_MAKE_CMDS) debug
## Clean, build, and install the current module ## Clean, build, and install the current module
rebuild: clean build install rebuild: clean build install
## Deletes temporary build files ## Deletes temporary build files
clean: conf clean: conf
$(QUIET) $(E3_MODULE_MAKE_CMDS) clean $(QUIET) $(E3_MODULE_MAKE_CMDS) clean
## Initializes, patches, builds, and installs.
all: init patch rebuild all: init patch rebuild
# Copy $(E3_MODULE_MAKEFILE) into $(E3_MODULE_SRC_PATH) # Copy $(E3_MODULE_MAKEFILE) into $(E3_MODULE_SRC_PATH)
......
...@@ -33,8 +33,6 @@ GENERATED_DEP_FILE:=$(E3_MODULES_INSTALL_LOCATION_LIB)/$(EPICS_HOST_ARCH)/$(E3_M ...@@ -33,8 +33,6 @@ GENERATED_DEP_FILE:=$(E3_MODULES_INSTALL_LOCATION_LIB)/$(EPICS_HOST_ARCH)/$(E3_M
.PHONY: env vars header vers dep _dep1 _dep2 .PHONY: env vars header vers dep _dep1 _dep2
## Print relevant environment variables ## Print relevant environment variables
env: vars
vars: header vars: header
$(foreach v, $(E3_MODULES_VARIABLES), $(info $(v) = $($(v)))) @#noop $(foreach v, $(E3_MODULES_VARIABLES), $(info $(v) = $($(v)))) @#noop
...@@ -54,6 +52,7 @@ else ...@@ -54,6 +52,7 @@ else
$(QUIET)tree -L $(LEVEL) $(E3_MODULES_PATH)/$(E3_MODULE_NAME) $(QUIET)tree -L $(LEVEL) $(E3_MODULES_PATH)/$(E3_MODULE_NAME)
endif endif
## Displays dependency information, both configured and generated.
dep: _dep2 dep: _dep2
ifneq ("$(wildcard $(GENERATED_DEP_FILE))","") ifneq ("$(wildcard $(GENERATED_DEP_FILE))","")
$(QUIET)echo "> generated ..." $(QUIET)echo "> generated ..."
......
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