-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
42 lines (34 loc) · 1.04 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
#This is just here for convenience
#Call "make help" for available commands
ifndef ECHO
ECHO = echo
endif
VERSION = beta2.6
.PHONY: all
all:
@$(ECHO) "Rebuilding Wii and logging to build.log..."
@$(MAKE) -C Gamecube clean -f Makefile_Wii
@$(MAKE) -C Gamecube -f Makefile_Wii 2> temp.log
#This step removes all leading pathes from the build.log
@sed 's|.*wiisxrx/Gamecube|/wiisxrx/Gamecube|;s|/./|/|;s|\r\n|\n|' temp.log > build.log
#note that msys doesn't seem to like sed -i
@rm temp.log
Wii:
@$(ECHO) "Building Wii..."
@$(MAKE) -C Gamecube -f Makefile_Wii
GC:
@$(ECHO) "Building GC..."
@$(MAKE) -C Gamecube -f Makefile_GC
dist: Wii
@$(MAKE) -C Gamecube/release/ VERSION=$(VERSION)
clean:
@$(ECHO) "Cleaning..."
@$(MAKE) -C Gamecube clean -f Makefile_Wii
help:
@$(ECHO)
@$(ECHO) "Available commands:"
@$(ECHO)
@$(ECHO) "make # cleans, rebuilds and log errors (Wii)"
@$(ECHO) "make Wii # build everything (Wii)"
@$(ECHO) "make GC # build everything (Gamecube)"
@$(ECHO) "make clean # clean everything"