diff --git a/Makefile b/Makefile index 23eb2f8..3002185 100644 --- a/Makefile +++ b/Makefile @@ -38,25 +38,31 @@ all: setup compile execute clean setup: include lib pull: + # Pull and update the the build submodules git submodule init; git submodule update cd vendor/raylib-cpp; git submodule init ; git submodule update include: pull + # Copy the relevant header files into includes mkdir $(mkdirOptions) include cp vendor/raylib-cpp/vendor/raylib/src/{raylib.h,raymath.h} include cp vendor/raylib-cpp/include/*.hpp include lib: pull + # Build the raylib static library file and copy it into lib cd vendor/raylib-cpp/vendor/raylib/src; make PLATFORM=PLATFORM_DESKTOP mkdir $(mkdirOptions) lib/$(platform) cp vendor/raylib-cpp/vendor/raylib/src/libraylib.a lib/macOS/libraylib.a compile: + # Create the build folder and compile the executable mkdir $(mkdirOptions) build $(compiler) -std=c++17 -I include -L lib/$(platform) src/main.cpp -o $(buildFile) -l raylib $(options) execute: $(buildFile) + # Run the executable and push the output to a log file clean: + # Clean up all relevant files $(cleanCommand)