Last active
March 19, 2016 10:50
-
-
Save ceremcem/26fbf6b44099c788c887 to your computer and use it in GitHub Desktop.
Mixed makefile for building makefiles with multiple languages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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