BatsAndPray/Makefile

27 lines
741 B
Makefile
Raw Normal View History

2020-09-18 23:10:01 -05:00
love:
2020-09-19 00:13:37 -05:00
zip -9r bin/bats\&pray.love ./*
win32: love
ifeq (,$(wildcard bin/love-win32.zip))
wget -O bin/love-win32.zip \
https://github.com/love2d/love/releases/download/11.3/love-11.3-win32.zip
endif
unzip -d bin/ bin/love-win32.zip
mv bin/love-*-win32 bin/bats\&pray-win32
rm bin/bats\&pray-win32/changes.txt
rm bin/bats\&pray-win32/readme.txt
rm bin/bats\&pray-win32/lovec.exe
cat bin/bats\&pray.love >> bin/bats\&pray-win32/love.exe
mv bin/bats\&pray-win32/love.exe bin/bats\&pray-win32/Bats\ \&\ Pray.exe
cp doc/bin-license.txt bin/bats\&pray-win32/license.txt
zip -9jr bin/bats\&pray-win32.zip bin/bats\&pray-win32
rm -rf bin/bats\&pray-win32
2020-09-18 23:10:01 -05:00
test: love
2020-09-19 00:13:37 -05:00
love bin/bats\&pray.love
2020-09-18 23:10:01 -05:00
clean:
2020-09-19 00:13:37 -05:00
rm -rf ./bin/*
2020-09-18 23:10:01 -05:00
2020-09-19 00:13:37 -05:00
all: love win32