Created
September 26, 2010 13:38
-
-
Save vrld/597934 to your computer and use it in GitHub Desktop.
This file contains 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
love=${HOME}/.bin/love # location of love binary | |
zip=/usr/bin/zip # location of zip | |
luac=/usr/bin/luac # location of luac | |
# name of the .love | |
game= | |
# source files. if you have subdirectories, add */*.lua | |
sources=*.lua | |
# resource files like images, fonts and sounds. | |
res= | |
# test, make love and run | |
.PHONY : run | |
run : test $(game).love | |
$(love) $(game).love | |
# test for syntax errors | |
.PHONY : test | |
test : | |
$(luac) -p $(sources) | |
# make love! | |
.PHONY : love | |
love : $(game).love | |
$(game).love : $(sources) $(res) | |
$(zip) $(game).love $(sources) $(res) | |
.PHONY : clean | |
clean : | |
rm $(game).love |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment