Forked from
ESS EPICS Environment / wrappers / e3-require
564 commits behind the upstream repository.
-
Simon Rose authored
Local source mode can theoreticaly run 'make devbuild' and other related targets. However, this yields somewhat undefined behaviour, since those will potentially be missing configuration data or clashing with the regular build location. There is no reason to include dev targets for local source mode, so they should be removed.
Simon Rose authoredLocal source mode can theoreticaly run 'make devbuild' and other related targets. However, this yields somewhat undefined behaviour, since those will potentially be missing configuration data or clashing with the regular build location. There is no reason to include dev targets for local source mode, so they should be removed.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
RULES_DEV 2.29 KiB
# -*- mode: Makefile;-*-
ifneq ($(E3_LOCAL_SOURCE),1)
.PHONY: devvars devenv devinit devbuild devclean devinstall devrebuild devuninstall devdistclean devconf devepics devepics-clean devepics-distclean devpatch devpatchrevert devexistent devdep devvers
devvars: vars
devenv: devvars
## Initializes a dev setup, defined with configure/CONFIG_MODULE_DEV and configure/RELEASE_DEV
devinit: git-submodule-sync
git clone $(E3_MODULE_DEV_GITURL) $(E3_MODULE_SRC_PATH)
cd $(E3_MODULE_SRC_PATH) && git checkout $(EPICS_MODULE_TAG)
# E3_MODULE_SRC_PATH_FLAG 1 : the directory is not there
# E3_MODULE_SRC_PATH_FLAG 0 : the directory is there
E3_MODULE_SRC_PATH_FLAG := $(shell test -d $(E3_MODULE_SRC_PATH) 1>&2 2> /dev/null; echo $$?)
# Note that this is re-defined in CONFIG_MODULE_DEV, which is included if you do a `make dev*`.
ifeq "$(E3_MODULE_SRC_PATH_FLAG)" "1"
devbuild: nonexists
devclean: nonexists
devinstall: nonexists
devrebuild: nonexists
devuninstall: nonexists
devdistclean: nonexists
devconf: nonexists
devepics: nonexists
devepics-clean: nonexists
devepics-distclean: nonexists
devpatch: nonexists
devpatchrevert: nonexists
devexistent: nonexists
devdep: nonexists
devvers: nonexists
nonexists:
$(QUIET)echo ""
$(QUIET)echo "------------------------------------------------------------"
$(QUIET)echo " Could not find $(E3_MODULE_SRC_PATH) "
$(QUIET)echo " Please make devinit first ! "
$(QUIET)echo "------------------------------------------------------------"
$(QUIET)echo ""
else
## Displays information about the build process (development mode)
devdebug: debug
## Build current module (development mode)
devbuild: build
## Deletes temporary build files (development mode)
devclean: clean
## Install the current module (development mode)
devinstall: install
devrebuild: rebuild
## Uninstall the current module (development mode)
devuninstall: uninstall
devconf: conf
devdistclean: clean
$(QUIET)echo "Removing $(E3_MODULE_SRC_PATH) ......... "
rm -rf $(E3_MODULE_SRC_PATH)
devepics: epics
devepics-clean: epics-clean
devepics-distclean: epics-distclean
devpatch: patch
devpatchrevert: patchrevert
devexistent: existent
devdep: dep
devvers: vers
endif # E3_MODULE_SRC_PATH_FLAG
else
dev%:
$(error You are in local source mode. No dev targets are available)
endif # E3_LOCAL_SOURCE