From 499d78d150f0f3ebaa6b93f31a43efaae69eebb3 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sat, 12 Sep 2020 17:32:56 +0200 Subject: [PATCH] Adding the gplib dependency tracking --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3147ad0..74481cc 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,8 @@ OBJECTS := $(SRC:%=$(OBJ_DIR)/%.o) DEPS := .deps/spdlog \ .deps/spdlog_sqlite \ .deps/sqlite3 \ - .deps/jinx + .deps/jinx \ + .deps/gplib ##################### # COMPILATION MODES # ##################### @@ -67,6 +68,7 @@ SQLITE_SPDLOG_URL := https://raw.githubusercontent.com/PedroRod/sqlite_sink/mas SQLITE_VERSION_STR := sqlite-amalgamation-3320300 SQLITE_URL := https://www.sqlite.org/2020/$(SQLITE_VERSION_STR).zip SPDLOG_URL := https://github.com/gabime/spdlog +GPLIB_URL := https://git.nekoit.xyz/Archivist/gplib deps: $(DEPS) @@ -92,6 +94,13 @@ deps: $(DEPS) .deps/spdlog_sqlite: $(INCLUDE_DEPS)/sqlite_sink.h @mkdir -p $(@D) echo $(SQLITE_SPDLOG_URL) > $@ + +.deps/gplib: + @mkdir -p $(@D) + @rm -rf /tmp/gplib + cd /tmp; git clone --quiet --depth=1 $(GPLIB_URL) + cp -r /tmp/gplib/include/gp $(INCLUDE_DEPS)/gp + echo $(JINX_URL) > $@ ################################ # DEPENDENCIES IMPLEMENTATIONS # @@ -151,4 +160,4 @@ deps_clean: -@rm -rvf include_deps/* -@rm -rvf src_deps/* -@rm -rvf $(DEPS_DIR)/* - -@rm -rvf .deps/* \ No newline at end of file + -@rm -rvf .deps/*