2018-05-15 09:53:29 +00:00
|
|
|
SUBDIRS = 3ds switch
|
|
|
|
|
2019-09-05 18:22:12 +00:00
|
|
|
VERSION_MAJOR := 3
|
|
|
|
VERSION_MINOR := 7
|
2020-01-19 13:20:08 +00:00
|
|
|
VERSION_MICRO := 5
|
2019-07-10 19:31:06 +00:00
|
|
|
GIT_REV="$(shell git rev-parse --short HEAD)"
|
|
|
|
|
|
|
|
all: $(SUBDIRS)
|
2018-05-15 09:53:29 +00:00
|
|
|
|
|
|
|
clean:
|
2018-12-01 21:41:49 +00:00
|
|
|
@for dir in $(SUBDIRS); do $(MAKE) clean -C $$dir; done
|
2019-09-07 13:25:37 +00:00
|
|
|
@rm -f sharkive/build/*.json
|
|
|
|
@rm -f 3ds/romfs/cheats/*.bz2
|
|
|
|
@rm -f switch/romfs/cheats/*.bz2
|
2018-12-01 21:41:49 +00:00
|
|
|
|
2020-03-24 03:55:46 +00:00
|
|
|
3ds: 3ds_cheats
|
2019-07-24 17:35:27 +00:00
|
|
|
@$(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}')
|
2018-12-01 21:41:49 +00:00
|
|
|
|
2020-03-24 03:55:46 +00:00
|
|
|
switch: switch_cheats
|
2019-07-24 17:35:27 +00:00
|
|
|
@$(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}')
|
2018-12-01 21:41:49 +00:00
|
|
|
|
2019-05-06 20:51:09 +00:00
|
|
|
format:
|
|
|
|
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir format; done
|
|
|
|
|
2019-05-18 20:51:58 +00:00
|
|
|
cppcheck:
|
2019-09-07 13:25:37 +00:00
|
|
|
@cppcheck . --enable=all --force 2> cppcheck.log
|
2019-05-18 20:51:58 +00:00
|
|
|
|
2020-03-24 03:55:46 +00:00
|
|
|
cheats: $(SUBDIRS:=_cheats)
|
2019-09-07 13:25:37 +00:00
|
|
|
|
2020-03-24 03:55:46 +00:00
|
|
|
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
|