forked from shadowninja108/Starlight
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
26 lines (19 loc) · 721 Bytes
/
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
# TODO (Khangaroo): Make this process a lot less hacky (no, export did not work)
# See MakefileNSO
.PHONY: all clean starlight send
S2VER ?= 100
S2VERSTR ?= 1.0.0
S2ROMTYPE ?= US
all: starlight
starlight:
$(MAKE) all -f MakefileNSO S2VER=$(S2VER) S2VERSTR=$(S2VERSTR)
$(MAKE) starlight_patch_$(S2VER)/*.ips
starlight_patch_$(S2VER)/*.ips: patches/*.slpatch patches/configs/$(S2VER).config patches/maps/$(S2VER)/*.map \
build$(S2VER)/$(shell basename $(CURDIR))$(S2VER).map scripts/genPatch.py
@rm -f starlight_patch_$(S2VER)/*.ips
python3 scripts/genPatch.py $(S2VER)
send: all
python3.7 scripts/sendPatch.py $(IP) $(S2ROMTYPE) $(S2VER)
clean:
$(MAKE) clean -f MakefileNSO
@rm -fr starlight_patch_*