-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
44 lines (34 loc) · 1.25 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
APP_NAME=boxclip
APP_VERSION=0.2.1
LOVE_VERSION=11.1
build setup:
mkdir dist
cd dist && mkdir linux32 linux64 win32 win64
all:portable linux32 linux64 win32 win64
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 ../dist/$(APP_NAME)-$(APP_VERSION).love . -x \*.git* \dist
win32:
#create a windows 32bit standalone executable
cd dist/win32 && \
wget -N https://bitbucket.org/rude/love/downloads/love-$(LOVE_VERSION)-win32.zip && \
unzip -o love-$(LOVE_VERSION)-win32.zip && \
cd love-$(LOVE_VERSION).0-win32 && \
cat love.exe ../../$(APP_NAME)-$(APP_VERSION).love > $(APP_NAME)-$(APP_VERSION)-win32.exe && \
rm -f love.exe && \
zip -9 -q -r ../$(APP_NAME)-$(APP_VERSION)-win32.zip .
win64:
#create a windows 64bit standalone executable
cd dist/win64 && \
wget -N https://bitbucket.org/rude/love/downloads/love-$(LOVE_VERSION)-win64.zip && \
unzip -o love-$(LOVE_VERSION)-win64.zip && \
cd love-$(LOVE_VERSION).0-win64 && \
cat love.exe ../../$(APP_NAME)-$(APP_VERSION).love > $(APP_NAME)-$(APP_VERSION)-win64.exe && \
rm -rf love.exe && \
zip -9 -q -r ../$(APP_NAME)-$(APP_VERSION)-win64.zip .
linux32:
linux64:
install:
clean:
rm -rf dist