Allow building for only one platform properly

This commit is contained in:
piepie62 2020-03-23 23:55:46 -04:00
parent 4395619de0
commit 6aefd4fe42

View file

@ -13,10 +13,10 @@ clean:
@rm -f 3ds/romfs/cheats/*.bz2 @rm -f 3ds/romfs/cheats/*.bz2
@rm -f switch/romfs/cheats/*.bz2 @rm -f switch/romfs/cheats/*.bz2
3ds: cheats 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}') @$(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: cheats 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}') @$(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: format:
@ -25,8 +25,12 @@ format:
cppcheck: cppcheck:
@cppcheck . --enable=all --force 2> cppcheck.log @cppcheck . --enable=all --force 2> cppcheck.log
cheats: cheats: $(SUBDIRS:=_cheats)
@make --always-make -C 3ds cheats
@make --always-make -C switch cheats
.PHONY: $(SUBDIRS) clean format cppcheck 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