Skip to content

Instantly share code, notes, and snippets.

@davisp
Created April 16, 2011 15:45
Show Gist options
  • Save davisp/923210 to your computer and use it in GitHub Desktop.
Save davisp/923210 to your computer and use it in GitHub Desktop.
# Make will use environment variables and set variables that you
# specify on the command line. The example below, VAR1 is an enviornment
# variable and VAR2 is set from the command line.
#
# $ VAR1=foo make VAR2=bar
# foo
# bar
all:
@echo ${VAR1}
@echo ${VAR2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment