Skip to content

Instantly share code, notes, and snippets.

@vrld
Created September 26, 2010 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrld/597934 to your computer and use it in GitHub Desktop.
Save vrld/597934 to your computer and use it in GitHub Desktop.
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