Skip to content

Instantly share code, notes, and snippets.

@ceremcem
Created March 19, 2016 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ceremcem/a380bb92cbd03c34aba5 to your computer and use it in GitHub Desktop.
Save ceremcem/a380bb92cbd03c34aba5 to your computer and use it in GitHub Desktop.
use bash scripts in make files
define my_test =
cd /tmp
pwd
X="hello $(pwd)"
echo "here is $X"
endef
test: ; @$(value my_test)
# Expected output:
#
# /tmp
# here is hello /tmp
# Produced output:
#
# /home/ceremcem/tmp/b
# here is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment