Created
May 16, 2017 12:39
-
-
Save iknite/0042b683f0ac0587fc5d62f90a6983ff to your computer and use it in GitHub Desktop.
Makefile recipes
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
.DEFAULT_GOAL := install | |
# Environment | |
ENV ?= .env | |
ENV_VARS ?= AWS_PROFILE AWS_REGION | |
ENV_GEN := $(shell ./.env.gen ${ENV} ${ENV_VARS} 1>&2) | |
include ${ENV} | |
export $(shell sed 's/=.*//' ${ENV}) | |
# Force Make use only one target and the rest as args for that | |
npm: | |
@docker-compose run npm npm $(filter-out $@,$(MAKECMDGOALS)) | |
%: # all targets | |
@: # do nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment