forked from fruityloops1/smo-practice
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (22 loc) · 902 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
27
28
29
30
# 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
# Edit this line to enable FTP connection with "make send".
# If the FTP connection is password protected, the username and password need to be set in sendPatch.py.
#IP ?= 192.168.0.0
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
python scripts/genPatch.py $(S2VER)
send: all
python scripts/sendPatch.py $(IP) $(S2ROMTYPE) $(S2VER)
clean:
$(MAKE) clean -f MakefileNSO
@rm -fr starlight_patch_*