forked from FlagBrew/PKSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (39 loc) · 1.52 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
APP_TITLE := PKSM
APP_DESCRIPTION := Gen III to Gen VIII save manager
APP_AUTHOR := FlagBrew
VERSION_MAJOR := 9
VERSION_MINOR := 2
VERSION_MICRO := 0
GIT_REV="$(shell git rev-parse --short HEAD)"
OUTDIR := out
RELEASEDIR := release
ICON := assets/icon.png
debug: 3ds-debug
release: 3ds-release docs
revision:
@echo \#define GIT_REV \"$(GIT_REV)\" > common/include/revision.h
@echo \#define VERSION_MAJOR $(VERSION_MAJOR) >> common/include/revision.h
@echo \#define VERSION_MINOR $(VERSION_MINOR) >> common/include/revision.h
@echo \#define VERSION_MICRO $(VERSION_MICRO) >> common/include/revision.h
3ds-debug: revision
$(MAKE) -C 3ds VERSION_MAJOR=$(VERSION_MAJOR) VERSION_MINOR=$(VERSION_MINOR) VERSION_MICRO=$(VERSION_MICRO)
no-deps: revision
$(MAKE) -C 3ds VERSION_MAJOR=$(VERSION_MAJOR) VERSION_MINOR=$(VERSION_MINOR) VERSION_MICRO=$(VERSION_MICRO) no-deps
3ds-release: revision
$(MAKE) -C 3ds VERSION_MAJOR=$(VERSION_MAJOR) VERSION_MINOR=$(VERSION_MINOR) VERSION_MICRO=$(VERSION_MICRO) RELEASE="1"
docs:
@mkdir -p $(OUTDIR)
@gwtc -o $(OUTDIR) -n "$(APP_TITLE) Manual" -t "$(APP_TITLE) v$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO) Documentation" --logo-img $(ICON) docs/wiki
clean:
@rm -f common/include/revision.h
$(MAKE) -C 3ds clean
spotless: clean
$(MAKE) -C 3ds spotless
format:
$(MAKE) -C 3ds format
$(MAKE) -C core format
cppcheck:
$(MAKE) -C 3ds cppcheck
cppclean:
$(MAKE) -C 3ds cppclean
.PHONY: debug release revision 3ds-debug no-deps 3ds-release docs clean spotless format cppcheck cppclean