-
Notifications
You must be signed in to change notification settings - Fork 153
/
Makefile
36 lines (25 loc) · 1.09 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
SUBDIRS = 3ds switch
VERSION_MAJOR := 3
VERSION_MINOR := 8
VERSION_MICRO := 1
GIT_REV="$(shell git rev-parse --short HEAD)"
all: $(SUBDIRS)
clean:
@for dir in $(SUBDIRS); do $(MAKE) clean -C $$dir; done
@rm -f sharkive/build/*.json
@rm -f 3ds/romfs/cheats/*.bz2
@rm -f switch/romfs/cheats/*.bz2
3ds: 3ds_cheats
@$(MAKE) -C 3ds VERSION_MAJOR=${VERSION_MAJOR} VERSION_MINOR=${VERSION_MINOR} VERSION_MICRO=${VERSION_MICRO} GIT_REV=${GIT_REV} CHEAT_SIZE_DECOMPRESSED=$(shell stat -t "sharkive/build/3ds.json" | awk '{print $$2}')
switch: switch_cheats
@$(MAKE) -C switch VERSION_MAJOR=${VERSION_MAJOR} VERSION_MINOR=${VERSION_MINOR} VERSION_MICRO=${VERSION_MICRO} GIT_REV=${GIT_REV} CHEAT_SIZE_DECOMPRESSED=$(shell stat -t "sharkive/build/switch.json" | awk '{print $$2}')
format:
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir format; done
cppcheck:
@cppcheck . --enable=all --force 2> cppcheck.log
cheats: $(SUBDIRS:=_cheats)
3ds_cheats:
@$(MAKE) --always-make -C 3ds cheats
switch_cheats:
@$(MAKE) --always-make -C switch cheats
.PHONY: $(SUBDIRS) clean format cppcheck cheats 3ds_cheats switch_cheats