public
Created

  • Download Gist
gistfile1.mak
Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.