-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
46 lines (34 loc) · 848 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
37
38
39
40
41
42
43
44
45
DOL := wii-mahjong.dol
INSTALLFOLDER := mahjong
INSTALLDOL := $(INSTALLFOLDER)/boot.dol
.PHONY: all clean sound gfx layouts install 7zip zip
all: $(DOL)
sound:
cd sound && $(MAKE)
gfx:
cd gfx && $(MAKE)
layouts:
cd layouts && $(MAKE)
$(DOL): sound gfx layouts
$(MAKE) -f Makefile.DevKit
$(INSTALLDOL): $(DOL)
mv $< $(INSTALLDOL)
install: $(INSTALLDOL)
7zip: $(INSTALLDOL)
7z a $(INSTALLFOLDER).7z $(INSTALLFOLDER)
zip: $(INSTALLDOL)
zip $(INSTALLFOLDER).zip $(INSTALLFOLDER)/*
cls:
rm -f *.dol *.elf
clean:
cd sound && $(MAKE) clean
cd gfx && $(MAKE) clean
cd layouts && $(MAKE) clean
$(MAKE) -f Makefile.DevKit clean
rm -Rf $(INSTALLFOLDER).zip $(INSTALLFOLDER).7z $(INSTALLDOL)
rm -f mahjongglayouts.c mahjongglayouts.h
run: $(DOL)
wiiload $(DOL)
rebuild: sound gfx layouts
rm -f build/*.o
$(MAKE) -f Makefile.DevKit