#!/usr/bin/env zsh # Run the rule without either of the env vars defined; # the output will show that neither variable is set. echo "SOMEVARIABLE=$SOMEVARIABLE" echo "ANOTHERVARIABLE=$ANOTHERVARIABLE" make default echo "" # Run the rule with both env vars defined; # the output will override the value of SOMEVARIABLE # to be the value defined in the Makefile, and pass the ANOTHERVARIABLE # through without overriding it. export SOMEVARIABLE=somevalue export ANOTHERVARIABLE=anothervalue echo "SOMEVARIABLE=$SOMEVARIABLE" echo "ANOTHERVARIABLE=$ANOTHERVARIABLE" make default