-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
98 lines (70 loc) · 3.13 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
all: lovefile desktop console
desktop: lovefile win64 win32 macos
console: lovefile switch
lovefile:
@rm -rf build/lovefile
@mkdir -p build/lovefile
@cd src/love; zip -r -9 ../../build/lovefile/dnb-switch.love .
@mkdir -p build/release
@rm -f build/release/dnb-switch-lovefile.zip
@cd build/lovefile; zip -9 -r ../release/dnb-switch-lovefile.zip .
win64: lovefile
@rm -rf build/win64
@mkdir -p build/win64
@cp resources/win64/love/OpenAL32.dll build/win64
@cp resources/win64/love/SDL2.dll build/win64
@cp resources/win64/love/license.txt build/win64
@cp resources/win64/love/lua51.dll build/win64
@cp resources/win64/love/mpg123.dll build/win64
@cp resources/win64/love/love.dll build/win64
@cp resources/win64/love/msvcp120.dll build/win64
@cp resources/win64/love/msvcr120.dll build/win64
@cat resources/win64/love/love.exe build/lovefile/dnb-switch.love > build/win64/dnb-switch.exe
@mkdir -p build/release
@rm -f build/release/dnb-switch-win64.zip
@cd build/win64; zip -9 -r ../release/dnb-switch-win64.zip .
win32: lovefile
@rm -rf build/win32
@mkdir -p build/win32
@cp resources/win32/love/OpenAL32.dll build/win32
@cp resources/win32/love/SDL2.dll build/win32
@cp resources/win32/love/license.txt build/win32
@cp resources/win32/love/lua51.dll build/win32
@cp resources/win32/love/mpg123.dll build/win32
@cp resources/win32/love/love.dll build/win32
@cp resources/win32/love/msvcp120.dll build/win32
@cp resources/win32/love/msvcr120.dll build/win32
@cat resources/win32/love/love.exe build/lovefile/dnb-switch.love > build/win32/dnb-switch.exe
@mkdir -p build/release
@rm -f build/release/dnb-switch-win32.zip
@cd build/win32; zip -9 -r ../release/dnb-switch-win32.zip .
macos: lovefile
@rm -rf build/macos
@mkdir -p "build/macos/Dave and Bambi: Switch Port.app"
@cp -r resources/macos/love.app/. "build/macos/Dave and Bambi: Switch Port.app"
@cp build/lovefile/dnb-switch.love "build/macos/Dave and Bambi: Switch Port.app/Contents/Resources"
@mkdir -p build/release
@rm -f build/release/dnb-switch-macos.zip
@cd build/macos; zip -9 -r ../release/dnb-switch-macos.zip .
switch: lovefile
@rm -rf build/switch
@mkdir -p build/switch/switch/dnb-switch
@nacptool --create "VS Dave and Bambi: Switch Port" Mayo78 "$(shell cat version.txt)" build/switch/dnb-switch.nacp
@mkdir build/switch/romfs
@cp build/lovefile/dnb-switch.love build/switch/romfs/game.love
@elf2nro resources/switch/love.elf build/switch/switch/dnb-switch/dnb-switch.nro --icon=resources/switch/icon.jpg --nacp=build/switch/dnb-switch.nacp --romfsdir=build/switch/romfs
@rm -r build/switch/romfs
@rm build/switch/dnb-switch.nacp
@mkdir -p build/release
@rm -f build/release/dnb-switch-switch.zip
@cd build/switch; zip -9 -r ../release/dnb-switch-switch.zip .
#someone askedc me to try but i have no idea what im doing lol
#3ds: lovefile
# @rm -rf build/3ds
# @mkdir -p build/3ds/3ds/dnb-switch
# @3dsxtool resources/switch/love.elf build/3ds/3ds/dnb-switch/dnb-switch.3dsx --icon=resources/switch/icon.jpg
# @mkdir -p build/release
# @rm -f build/release/dnb-switch-3ds.zip
# @cd build/3ds; zip -9 -r ../release/dnb-switch-3ds.zip .
clean:
@rm -rf build