Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoGiordano committed Sep 7, 2019
1 parent 257d447 commit 6257fd5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,24 @@ 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:
@$(MAKE) -C 3ds cheats
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:
@$(MAKE) -C switch cheats
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
@cppcheck . --enable=all --force 2> cppcheck.log

.PHONY: $(SUBDIRS) clean format cppcheck
cheats:
@make --always-make -C 3ds cheats
@make --always-make -C switch cheats

.PHONY: $(SUBDIRS) clean format cppcheck cheats

0 comments on commit 6257fd5

Please sign in to comment.