Created
February 26, 2021 15:40
-
-
Save jgermade/8c2d42126ce2369edda0864ee3470d62 to your computer and use it in GitHub Desktop.
override and aliasing environment variables in Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# API=staging if not defined | |
ifndef API | |
export API=staging | |
endif | |
# API=dev as an alias for API=development | |
ifeq ($(API),dev) | |
override API=development | |
export API | |
endif | |
# API=prod as an alias for API=production | |
ifeq ($(API),prod) | |
override API=production | |
export API | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment