summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
49eb540)
See https://stackoverflow.com/a/
27335439/569101
RELEASE_FOLDER=wllbg-release
# ensure the ENV variable is well defined
RELEASE_FOLDER=wllbg-release
# ensure the ENV variable is well defined
-ifeq ($(origin ENV), prod)
- # all good ("prod" is a valid env)
-else ifeq ($(origin ENV), dev)
- # all good ("dev" is a valid env)
-else ifeq ($(origin ENV), test)
- # all good ("test" is a valid env)
+AVAILABLE_ENV := prod dev test
+ifneq ($(filter $(ENV),$(AVAILABLE_ENV)),)
+ # all good
else
# not good, force it to "prod"
override ENV = prod
else
# not good, force it to "prod"
override ENV = prod