-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.28 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PROJECT_NAME = WRT
SOURCES = main.lua \
conf.lua \
game.lua \
util.lua \
log.lua \
parser.lua \
timer.lua \
assets.lua \
animate.lua \
models/* \
views/* \
controllers/* \
lib/* \
data/* \
assets/*
LOVE_WIN_SOURCE = love-11.1.0-win32
.PHONY: all run love lint package test packagewin
all:
run:
love .
# because executing "make love" is awesome
love: run
lint:
luacheck .
test: unittest functionaltest
unittest:
busted --run unittest --output gtest
functionaltest:
#busted --run functionaltest --output gtest
package:
zip -9 -r ${PROJECT_NAME}.love ${SOURCES}
packagewin: ${LOVE_WIN_SOURCE} package
cd ${LOVE_WIN_SOURCE} \
&& cat ./love.exe ../${PROJECT_NAME}.love > ${PROJECT_NAME}.exe \
&& rm -rf changes.txt lovec.exe love.ico readme.txt love.exe
mv ${LOVE_WIN_SOURCE} ${PROJECT_NAME}_win
zip -r ${PROJECT_NAME}_win ${PROJECT_NAME}_win
rm -rf ${PROJECT_NAME}_win
${LOVE_WIN_SOURCE}: love-11.1-win32.zip
unzip love-11.1-win32.zip
love-11.1-win32.zip:
wget https://bitbucket.org/rude/love/downloads/love-11.1-win32.zip