Skip to content

Instantly share code, notes, and snippets.

@ceremcem
Last active March 19, 2016 10:50
Show Gist options
  • Save ceremcem/26fbf6b44099c788c887 to your computer and use it in GitHub Desktop.
Save ceremcem/26fbf6b44099c788c887 to your computer and use it in GitHub Desktop.
Mixed makefile for building makefiles with multiple languages
# default interpreter is BASH
my-target:
echo "hello"
X=1
echo "this is X: $X"
# One target may use Python
my-other-target.py:
i = 5
print "hello there %d" % i
# Other target may use LiveScript
test.ls
adder = (a, b) --> a + b
adder5 = adder 5
console.log "Adding 3 to 5: #{adder5 3}"
console.log "Adding 2 to 6: #{add 2 6}"
## You need to run like this file:
# $ mmake my-target
# $ mmake my-other-target
# $ mmake test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment