Browse Source

Adding the gplib dependency tracking

master
Ludovic 'Archivist' Lagouardette 4 years ago
parent
commit
499d78d150
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      Makefile

+ 11
- 2
Makefile View File

@ -29,7 +29,8 @@ OBJECTS := $(SRC:%=$(OBJ_DIR)/%.o)
DEPS := .deps/spdlog \ DEPS := .deps/spdlog \
.deps/spdlog_sqlite \ .deps/spdlog_sqlite \
.deps/sqlite3 \ .deps/sqlite3 \
.deps/jinx
.deps/jinx \
.deps/gplib
##################### #####################
# COMPILATION MODES # # COMPILATION MODES #
##################### #####################
@ -67,6 +68,7 @@ SQLITE_SPDLOG_URL := https://raw.githubusercontent.com/PedroRod/sqlite_sink/mas
SQLITE_VERSION_STR := sqlite-amalgamation-3320300 SQLITE_VERSION_STR := sqlite-amalgamation-3320300
SQLITE_URL := https://www.sqlite.org/2020/$(SQLITE_VERSION_STR).zip SQLITE_URL := https://www.sqlite.org/2020/$(SQLITE_VERSION_STR).zip
SPDLOG_URL := https://github.com/gabime/spdlog SPDLOG_URL := https://github.com/gabime/spdlog
GPLIB_URL := https://git.nekoit.xyz/Archivist/gplib
deps: $(DEPS) deps: $(DEPS)
@ -92,6 +94,13 @@ deps: $(DEPS)
.deps/spdlog_sqlite: $(INCLUDE_DEPS)/sqlite_sink.h .deps/spdlog_sqlite: $(INCLUDE_DEPS)/sqlite_sink.h
@mkdir -p $(@D) @mkdir -p $(@D)
echo $(SQLITE_SPDLOG_URL) > $@ 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 # # DEPENDENCIES IMPLEMENTATIONS #
@ -151,4 +160,4 @@ deps_clean:
-@rm -rvf include_deps/* -@rm -rvf include_deps/*
-@rm -rvf src_deps/* -@rm -rvf src_deps/*
-@rm -rvf $(DEPS_DIR)/* -@rm -rvf $(DEPS_DIR)/*
-@rm -rvf .deps/*
-@rm -rvf .deps/*

Loading…
Cancel
Save