-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathMakefile
43 lines (33 loc) · 1.21 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
#---------------------------------------------------------------------------------
# PACKAGE is the directory where final published files will be placed
#---------------------------------------------------------------------------------
PACKAGE := bin
#---------------------------------------------------------------------------------
# Goals for Build
#---------------------------------------------------------------------------------
.PHONY: all package release nightly retail hb
all: retail hb
package-release: release
@mkdir -p "$(PACKAGE)"
@cp "retail/bin/nds-bootstrap-release.nds" "$(PACKAGE)/nds-bootstrap-release.nds"
@cp "hb/bin/nds-bootstrap-hb-release.nds" "$(PACKAGE)/nds-bootstrap-hb-release.nds"
package-nightly: nightly
@mkdir -p "$(PACKAGE)"
@cp "retail/bin/nds-bootstrap-nightly.nds" "$(PACKAGE)/nds-bootstrap-nightly.nds"
@cp "hb/bin/nds-bootstrap-hb-nightly.nds" "$(PACKAGE)/nds-bootstrap-hb-nightly.nds"
release:
@$(MAKE) -C retail release
@$(MAKE) -C hb release
nightly:
@$(MAKE) -C retail nightly
@$(MAKE) -C hb nightly
retail:
@$(MAKE) -C retail
hb:
@$(MAKE) -C hb
clean:
@echo clean build direcotiries
@$(MAKE) -C retail clean
@$(MAKE) -C hb clean
@echo clean package files
@rm -rf "bin"