aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2016-01-31 21:31:05 +0100
committerKamil Cholewiński <harry666t@gmail.com>2016-01-31 21:31:05 +0100
commitabf0e69ce819cbba12554d4afd21c435de6606eb (patch)
tree76b58c2add82fcc2d504964dfc8e5f840df9807f
parent862704288ac884f6660a16c167e1be71f90d2d07 (diff)
downloadpewpew-abf0e69ce819cbba12554d4afd21c435de6606eb.zip
pewpew-abf0e69ce819cbba12554d4afd21c435de6606eb.tar.gz
pewpew-abf0e69ce819cbba12554d4afd21c435de6606eb.tar.bz2
Windows build
-rw-r--r--.gitignore3
-rw-r--r--Makefile26
2 files changed, 26 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 0400612..25b9234 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,6 @@ luac.out
*.x86_64
*.hex
*.love
+
+# Downloaded love2d distribution
+/love-*-win32
diff --git a/Makefile b/Makefile
index 48e936e..c872413 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
SRC_LUA = ${shell find . -name "*.lua"}
MISC = LICENSE readme.md Makefile run_tests
+LOVE_VER = 0.10.0
all: test run
@@ -10,16 +11,35 @@ test:
run:
@love .
-release: release.love
+love-${LOVE_VER}-win32.zip:
+ @curl -LO https://bitbucket.org/rude/love/downloads/love-${LOVE_VER}-win32.zip
+
+love-${LOVE_VER}-win32: love-${LOVE_VER}-win32.zip
+ @unzip $@
+
+release: release.love release.windows
release.love: pewpew.love
+release.windows: pewpew-win32.zip
+
pewpew.love: test ${SRC_LUA} ${MISC}
@zip -9 -q -r $@ ${SRC_LUA} ${MISC}
+pewpew.exe: pewpew.love love-${LOVE_VER}-win32
+ @cat love-${LOVE_VER}-win32/love.exe pewpew.love > pewpew.exe
+
+pewpew-win32.zip: pewpew.exe love-${LOVE_VER}-win32
+ @zip -j pewpew-win32.zip \
+ pewpew.exe readme.md LICENSE \
+ love-${LOVE_VER}-win32/*.dll \
+ love-${LOVE_VER}-win32/license.txt
+
clean:
- @rm -f pewpew.love
+ @rm -rf pewpew.love pewpew-win32.zip \
+ love-${LOVE_VER}-win32.zip \
+ love-${LOVE_VER}-win32
.PHONY: all test run clean \
- release release.love
+ release release.love release.windows
.SUFFIXES: