forked from shadowninja108/Starlight
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (26 loc) · 947 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
31
32
33
34
35
36
# TODO (Khangaroo): Make this process a lot less hacky (no, export did not work)
# See MakefileNSO
.PHONY: all clean hyperbeam send
S2VER ?= 102
S2VERSTR ?= 1.0.2
all: hyperbeam files
hyperbeam:
$(MAKE) all -f nso.mk S2VER=$(S2VER) S2VERSTR=$(S2VERSTR)
$(MAKE) hyperbeam_patch_$(S2VER)/*.ips
hyperbeam_release:
$(MAKE) all -f nso.mk S2VER=$(S2VER) S2VERSTR=$(S2VERSTR) RELEASE=1
$(MAKE) hyperbeam_patch_$(S2VER)/*.ips
hyperbeam_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 hyperbeam_patch_$(S2VER)/*.ips
python3 scripts/genPatch.py $(S2VER)
files:
mkdir -p custom_data
python3 scripts/generateCustomFiles.py
send: all
python3 scripts/sendPatch.py $(IP) $(S2VER) $(USER) $(PW)
listen: all send
python3 scripts/logClient.py
clean:
$(MAKE) clean -f nso.mk
@rm -fr hyperbeam_patch_*