build(Makefile): revisit stop targets
This commit is contained in:
parent
f8681826b2
commit
d8c88d167f
23
Makefile
23
Makefile
@ -369,16 +369,21 @@ psql: --ensure-develop
|
|||||||
stop:
|
stop:
|
||||||
rm -rf develop
|
rm -rf develop
|
||||||
.PHONY: stop-%
|
.PHONY: stop-%
|
||||||
# HELP(stop-{database,memcached,minio,backend,frontend,hoogle}): stop all currently running develop instances of a given type
|
# HELP(stop-SERVICE): stop all currently running develop instances of a given service (i.e. backend,frontend,uniworxdb,hoogle,postgres,...)
|
||||||
stop-%:
|
# HELP(stop-JOB): stop all currently running develop instances of a given job (i.e. compile,start,test,lint)
|
||||||
|
stop-compile: CF_PREFIX=compile-
|
||||||
|
stop-start: CF_PREFIX=start-
|
||||||
|
stop-test: CF_PREFIX=test-
|
||||||
|
stop-lint: CF_PREFIX=lint-
|
||||||
|
stop-%: --stop;
|
||||||
|
--stop:
|
||||||
$(SET_DEVELOP)
|
$(SET_DEVELOP)
|
||||||
rm -rf $(DEVELOP)/$*
|
ifdef CF_PREFIX
|
||||||
stop-container-by-file:
|
rm -rf $(DEVELOP)/$(CF_PREFIX)*
|
||||||
rm $(CONTAINER_FILE)
|
endif
|
||||||
stop-container-by-id:
|
ifdef SERVICE_VARIANT
|
||||||
$(CONTAINER_COMMAND) stop $(CONTAINER_ID)
|
rm -rf $(DEVELOP)/*-$(SERVICE_VARIANT)
|
||||||
# CONTAINER_ID=`grep 'CONTAINER_ID=' $(CONTAINER_FILE) | sed 's/CONTAINER_ID=//'` ; \
|
endif
|
||||||
# $(MAKE) stop-container-by-id CONTAINER_ID=$${CONTAINER_ID}
|
|
||||||
|
|
||||||
.PHONY: new-develop
|
.PHONY: new-develop
|
||||||
# HELP: instantiate new development bundle, i.e. create new directory under develop/
|
# HELP: instantiate new development bundle, i.e. create new directory under develop/
|
||||||
|
|||||||
Reference in New Issue
Block a user