Checkpoint/Makefile

27 lines
879 B
Makefile
Raw Normal View History

SUBDIRS = 3ds switch
2019-07-10 21:31:06 +02:00
VERSION_MAJOR := 4
VERSION_MINOR := 0
VERSION_MICRO := 0
GIT_REV="$(shell git rev-parse --short HEAD)"
all: $(SUBDIRS)
clean:
@for dir in $(SUBDIRS); do $(MAKE) clean -C $$dir; done
3ds:
2019-07-24 19:35:27 +02:00
@$(MAKE) -C 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:
2019-07-24 19:35:27 +02:00
@$(MAKE) -C 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}')
2019-05-06 22:51:09 +02:00
format:
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir format; done
2019-05-18 22:51:58 +02:00
cppcheck:
2019-07-09 23:13:23 +02:00
cppcheck . --enable=all --force 2> cppcheck.log
2019-05-18 22:51:58 +02:00
.PHONY: $(SUBDIRS) clean format cppcheck