build(Makefile): replace prod- and dev-build targets with PROD variable
This commit is contained in:
parent
534568081f
commit
f4688ff067
17
Makefile
17
Makefile
@ -27,6 +27,8 @@ export DEVELOP
|
||||
export CONTAINER_FILE
|
||||
export CONTAINER_FILE_CONTENT
|
||||
|
||||
export PROD ?= false
|
||||
|
||||
# HELP HEADER START
|
||||
# To see the definition of all available targets, take a look into the Makefile.
|
||||
# Targets starting with '--' are not meant to be directly called.
|
||||
@ -169,20 +171,7 @@ well-known: static;
|
||||
##### BACKEND TARGETS #####
|
||||
|
||||
.PHONY: %-backend
|
||||
%-backend: FRADRIVE_SERVICE=backend
|
||||
%-backend: --image-build --containerized---%-dev-backend;
|
||||
|
||||
.PHONY: %-prod-backend
|
||||
%-prod-backend: FRADRIVE_SERVICE=backend
|
||||
%-prod-backend: --image-build --containerized---%-prod-backend;
|
||||
|
||||
--%-dev-backend: FRADRIVE_SERVICE=backend
|
||||
--%-dev-backend: stackopts=--flag uniworx:dev
|
||||
--%-dev-backend: --image-build --containerized---%-backend;
|
||||
|
||||
--%-prod-backend: FRADRIVE_SERVICE=backend
|
||||
--%-prod-backend: stackopts=--flag uniworx:-dev
|
||||
--%-prod-backend: --image-build --containerized-%-backend;
|
||||
%-backend: --image-build --containerized-%-backend;
|
||||
|
||||
# TODO: to be deprecated by start-%
|
||||
.PHONY: serve-backend
|
||||
|
||||
Reference in New Issue
Block a user