forked from DS-Homebrew/TWiLightMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
95 lines (76 loc) · 3.49 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
#---------------------------------------------------------------------------------
# PACKAGE is the directory where final published files will be placed
#---------------------------------------------------------------------------------
PACKAGE := 7zfile
#---------------------------------------------------------------------------------
# Goals for Build
#---------------------------------------------------------------------------------
.PHONY: all package booter booter_fc quickmenu manual romsel_aktheme romsel_dsimenutheme romsel_r4theme rungame settings slot1launch title
all: booter booter_fc quickmenu manual romsel_aktheme romsel_dsimenutheme romsel_r4theme rungame settings slot1launch title
package: all
@mkdir -p "$(PACKAGE)"
@cp "booter/booter.nds" "$(PACKAGE)/BOOT.NDS"
@cp "booter_fc/booter_fc.nds" "$(PACKAGE)/Flashcard users/BOOT.NDS"
@cp "booter_fc/booter_fc_cyclodsi.nds" "$(PACKAGE)/Flashcard users/BOOT_cyclodsi.NDS"
@mkdir -p "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030004/53524c41/content"
@cp "booter/booter.nds" "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030004/53524c41/content/00000000.app"
@mkdir -p "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030015/534c524e/content"
@cp "rungame/rungame.nds" "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030015/534c524e/content/00000000.app"
@mkdir -p "$(PACKAGE)/_nds/TWiLightMenu"
@cp "quickmenu/mainmenu.nds" "$(PACKAGE)/_nds/TWiLightMenu/mainmenu.srldr"
@cp "manual/manual.nds" "$(PACKAGE)/_nds/TWiLightMenu/manual.srldr"
@cp "romsel_aktheme/romsel_aktheme.nds" "$(PACKAGE)/_nds/TWiLightMenu/akmenu.srldr"
@cp "romsel_dsimenutheme/romsel_dsimenutheme.nds" "$(PACKAGE)/_nds/TWiLightMenu/dsimenu.srldr"
@cp "romsel_r4theme/romsel_r4theme.nds" "$(PACKAGE)/_nds/TWiLightMenu/r4menu.srldr"
@cp "settings/settings.nds" "$(PACKAGE)/_nds/TWiLightMenu/settings.srldr"
@cp "slot1launch/slot1launch.nds" "$(PACKAGE)/_nds/TWiLightMenu/slot1launch.srldr"
@cp "title/title.nds" "$(PACKAGE)/_nds/TWiLightMenu/main.srldr"
booter:
@$(MAKE) -C booter
booter_fc:
@$(MAKE) -C booter_fc
quickmenu:
@$(MAKE) -C quickmenu
manual:
@$(MAKE) -C manual
romsel_aktheme:
@$(MAKE) -C romsel_aktheme
romsel_dsimenutheme:
@$(MAKE) -C romsel_dsimenutheme
romsel_r4theme:
@$(MAKE) -C romsel_r4theme
rungame:
@$(MAKE) -C rungame
settings:
@$(MAKE) -C settings
slot1launch:
@$(MAKE) -C slot1launch
title:
@$(MAKE) -C title
clean:
@echo clean build directories
@$(MAKE) -C booter clean
@$(MAKE) -C booter_fc clean
@$(MAKE) -C quickmenu clean
@$(MAKE) -C manual clean
@$(MAKE) -C romsel_aktheme clean
@$(MAKE) -C romsel_dsimenutheme clean
@$(MAKE) -C romsel_r4theme clean
@$(MAKE) -C rungame clean
@$(MAKE) -C settings clean
@$(MAKE) -C slot1launch clean
@$(MAKE) -C title clean
@echo clean package files
@rm -rf "$(PACKAGE)/BOOT.NDS"
@rm -rf "$(PACKAGE)/Flashcard users/BOOT.NDS"
@rm -rf "$(PACKAGE)/Flashcard users/BOOT_cyclodsi.NDS"
@rm -rf "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030015/53524c41/content/00000000.app"
@rm -rf "$(PACKAGE)/DSi - CFW users/SDNAND root/title/00030015/534c524e/content/00000000.app"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/akmenu.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/dsimenu.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/main.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/mainmenu.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/manual.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/r4menu.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/settings.srldr"
@rm -rf "$(PACKAGE)/_nds/TWiLightMenu/slot1launch.srldr"