Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
# source files. if you have subdirectories, add */*.lua
# resource files like images, fonts and sounds.
# 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