-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 840 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 840 Bytes
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
.PHONY: clean gba gamecube wii
VERSION := v5.0.0
CURDIR = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
all: gba gamecube wii
gba:
@echo Building GBA version
@$(MAKE) --no-print-directory -C $(CURDIR)/gba
gamecube:
@echo Building GameCube version
@$(MAKE) --no-print-directory -f $(CURDIR)/common.mk GC=1 VERSION=$(VERSION)
wii:
@echo Building Wii version
@$(MAKE) --no-print-directory -f $(CURDIR)/common.mk VERSION=$(VERSION)
clean:
@echo clean ...
@rm -fr build-* *.elf *.dol
release:
@mkdir -p korbodonut
@cp boot.dol meta.xml icon.png ./korbodonut/
@cp donut-gc.elf donut-gc-debug.elf
@cp boot.elf donut-wii-debug.elf
@zip -rv donut ./korbodonut/
@rm -fr ./korbodonut/
@gh release create $(VERSION) donut.zip donut-gc.dol donut-wii-debug.elf donut-gc-debug.elf
@rm -f donut-wii.map donut-gc.map donut-wii.zip