forked from FlagBrew/PKSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 1.2 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
APP_TITLE := PKSM
APP_DESCRIPTION := Gen IV to Gen VII save manager
APP_AUTHOR := FlagBrew
VERSION_MAJOR := 7
VERSION_MINOR := 0
VERSION_MICRO := 1
GIT_REV="$(shell git rev-parse --short HEAD)"
OUTDIR := out
ICON := assets/icon.png
all: 3ds 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: 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
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
format:
$(MAKE) -C 3ds format
cppcheck:
$(MAKE) -C 3ds cppcheck
cppclean:
$(MAKE) -C 3ds cppclean
.PHONY: revision 3ds docs clean format cppcheck