Skip to content

Instantly share code, notes, and snippets.

@iknite
Created May 16, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iknite/0042b683f0ac0587fc5d62f90a6983ff to your computer and use it in GitHub Desktop.
Save iknite/0042b683f0ac0587fc5d62f90a6983ff to your computer and use it in GitHub Desktop.
Makefile recipes
.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