HorseSeaHorse/Makefile

30 lines
899 B
Makefile
Raw Permalink Normal View History

2021-02-07 00:37:19 -06:00
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
2021-02-05 20:58:58 -06:00
love:
2021-02-07 17:03:34 -06:00
zip -9r bin/horseseahorse.love ./*
2021-02-05 20:58:58 -06:00
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
2021-02-07 17:03:34 -06:00
mv bin/love-*-win32 bin/horseseahorse-win32
rm bin/horseseahorse-win32/changes.txt
rm bin/horseseahorse-win32/readme.txt
rm bin/horseseahorse-win32/lovec.exe
cat bin/horseseahorse.love >> bin/horseseahorse-win32/love.exe
mv bin/horseseahorse-win32/love.exe bin/horseseahorse-win32/HorseHorse.exe
cp lib/bin-license.txt bin/horseseahorse-win32/license.txt
zip -9jr bin/horseseahorse-win32.zip bin/horseseahorse-win32
rm -rf bin/horseseahorse-win32
2021-02-05 20:58:58 -06:00
test: love
2021-02-07 17:03:34 -06:00
love bin/horseseahorse.love
2021-02-05 20:58:58 -06:00
clean:
rm -rf ./bin/*
all: love win32