From de48492137d32f945b2259b36668f38c889d4a12 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 30 Aug 2017 21:08:02 -0400 Subject: [PATCH] Add make submodules command --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1b874b5..b5db81f 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ OBJECTS := libretro.o \ vendor/physfs/extras/physfsrwops.o # Build all the dependencies, and the core. -all: | \ +all: | submodules \ vendor/physfs/libphysfs.a \ vendor/SDL_$(platform).a \ vendor/SDL_gfx_$(platform).a \ @@ -143,16 +143,16 @@ $(TARGET): $(OBJECTS) clean: rm -f $(TARGET) $(OBJECTS) -vendor/Snippets/README.md: +submodules: git submodule update --init --recursive -vendor/physfs/libphysfs.a: vendor/Snippets/README.md +vendor/physfs/libphysfs.a: submodules cd vendor/physfs && cmake -D PHYSFS_BUILD_TEST=false . && $(MAKE) C_FLAGS=-fPIC -vendor/SDL_$(platform).a: vendor/Snippets/README.md +vendor/SDL_$(platform).a: submodules cd vendor/sdl-libretro && make -f Makefile.libretro TARGET_NAME=../SDL_$(platform).a -vendor/SDL_gfx_$(platform).a: vendor/Snippets/README.md +vendor/SDL_gfx_$(platform).a: submodules cd vendor/sdl-libretro/tests/SDL_gfx-2.0.26 && make -f Makefile.libretro STATIC_LIB=../../../SDL_gfx_$(platform).a test: all