-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
46 lines (34 loc) · 1.17 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
APP_NAME=starphase
APP_VERSION=0.11.3-dev
LOVE_VERSION=11.1
build setup:
mkdir build
cd build && mkdir linux32 linux64 win32 win64 osx freebsd
all:portable linux32 linux64 win32 win64 osx freebsd
portable:
#compress the lua sources to a *.love file
#this can run anywhere where love is already installed system wide
cd src && zip -9 -q -r ../build/$(APP_NAME)-$(APP_VERSION).love . -x \*.git* \build
win32:
#create a windows 32bit standalone executable
cd build/win32 && \
wget -N https://bitbucket.org/rude/love/downloads/love-$(LOVE_VERSION)-win32.zip && \
unzip love-$(LOVE_VERSION)-win32.zip && \
cd love-$(LOVE_VERSION)-win32 && \
cat love.exe ../../$(APP_NAME)-$(APP_VERSION).love > $(APP_NAME)-$(APP_VERSION)-win32.exe && \
rm -f love.exe
win64:
#create a windows 64bit standalone executable
cd build/win64 && \
wget -N https://bitbucket.org/rude/love/downloads/love-$(LOVE_VERSION)-win64.zip && \
unzip love-$(LOVE_VERSION)-win64.zip && \
cd love-$(LOVE_VERSION)-win64 && \
cat love.exe ../../$(APP_NAME)-$(APP_VERSION).love > $(APP_NAME)-$(APP_VERSION)-win64.exe && \
rm -f love.exe
linux32:
linux64:
osx:
freebsd:
install:
clean:
rm -rf build/