-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (34 loc) · 1.11 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
# NXGallery for Nintendo Switch
# Made with love by Jonathan Verbeek (jverbeek.de)
# IP Address of the Switch, change this to the address in your network
# Used for "make upload"
SWITCH_IP_ADDR = 192.168.178.46
#---------------------------------------------------------------------------------
TITLE_ID_APP = 4200000000000909
#---------------------------------------------------------------------------------
# Scripts
# Phony target
.PHONY: all app frontend stageApp upload clean
# Build all
all: app
@:
# Build the application
app:
@$(MAKE) -j -C app
@$(MAKE) stageApp
# Build the frontend
frontend:
@$(MAKE) --always-make -C frontend
# Stage the release into one single folder which can be copied on the SD card
stageApp:
@mkdir -p out/switch/
@cp app/out/app.nro out/switch/NXGallery.nro
# Transfers the built homebrew app over to the console by using nxlink
upload:
nxlink -s -a $(SWITCH_IP_ADDR) out/switch/NXGallery.nro
# Cleans everything
clean:
@rm -rf out/
@$(MAKE) clean -C app/
@$(MAKE) clean -C app/lib/borealis
#---------------------------------------------------------------------------------