This repository has been archived by the owner on Dec 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (65 loc) · 1.82 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.PHONY: test clean win
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
ifeq ($(LOVE_VERSION), 0.9.0)
LOVE = love9.app/Contents/MacOS/love
else
LOVE = love8.app/Contents/MacOS/love
endif
else
ifeq ($(LOVE_VERSION), 0.9.0)
LOVE = /usr/bin/love9
else
LOVE = /usr/bin/love8
endif
endif
ifeq ($(shell which wget),)
WGET = curl -s -O -L
else
WGET = wget -q --no-check-certificate
endif
test: $(LOVE)
rm -rf "$($HOME)/Library/Application Support/LOVE/glove"
rm -rf test/stackmachine
cp -r stackmachine test
$(LOVE) test
all:
-LOVE_VERSION=0.8.0 make test
-LOVE_VERSION=0.9.0 make test
win: love9/love.exe love8/love.exe
love9/love.exe:
$(WGET) https://bitbucket.org/rude/love/downloads/love-0.9.0-win64.zip
unzip -q love-0.9.0-win64.zip
rm -f love-0.9.0-win64.zip
mv love-0.9.0-win64 love9
love8/love.exe:
$(WGET) https://bitbucket.org/rude/love/downloads/love-0.8.0-win-x64.zip
unzip -q love-0.8.0-win-x64.zip
rm -f love-0.8.0-win-x64.zip
mv love-0.8.0-win-x64 love8
love8.app/Contents/MacOS/love:
$(WGET) https://bitbucket.org/rude/love/downloads/love-0.8.0-macosx-ub.zip
unzip -q love-0.8.0-macosx-ub.zip
rm -f love-0.8.0-macosx-ub.zip
mv love.app love8.app
love9.app/Contents/MacOS/love:
$(WGET) https://bitbucket.org/rude/love/downloads/love-0.9.0-macosx-x64.zip
unzip -q love-0.9.0-macosx-x64.zip
rm -f love-0.9.0-macosx-x64.zip
mv love.app love9.app
/usr/bin/love8:
wget https://bitbucket.org/rude/love/downloads/love_0.8.0-0precise1_amd64.deb
-sudo dpkg -i love_0.8.0-0precise1_amd64.deb
sudo apt-get update -y
sudo apt-get install -f -y
sudo ln -s /usr/bin/love /usr/bin/love8
/usr/bin/love9:
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get update -y
sudo apt-get install -y love
sudo ln -s /usr/bin/love /usr/bin/love9
clean:
rm -rf love8
rm -rf love9
rm -rf love8.app
rm -rf love9.app