From 37483b3c177f6b1018cb30d1b22e5365505e3692 Mon Sep 17 00:00:00 2001 From: Tim Stahlhut Date: Wed, 13 May 2020 12:07:53 -0400 Subject: Add $(SRCCACHE)/$(LIBGIT2_SRC_DIR)/source-extracted target --- deps/libgit2.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deps/libgit2.mk b/deps/libgit2.mk index ae634542b0..5d0a90aae7 100644 --- a/deps/libgit2.mk +++ b/deps/libgit2.mk @@ -44,6 +44,13 @@ endif LIBGIT2_SRC_PATH := $(SRCCACHE)/$(LIBGIT2_SRC_DIR) +$(SRCCACHE)/$(LIBGIT2_SRC_DIR)/source-extracted: $(SRCCACHE)/$(LIBGIT2_SRC_DIR).tar.gz + $(JLCHECKSUM) $< + mkdir -p $(dir $@) && \ + $(TAR) -C $(dir $@) --strip-components 1 --exclude tests/resources/testrepo-worktree/link_to_new.txt -xf $< + touch -c $(SRCCACHE)/$(LIBGIT2_SRC_DIR)/CMakeLists.txt # old target + echo 1 > $@ + $(LIBGIT2_SRC_PATH)/libgit2-agent-nonfatal.patch-applied: $(LIBGIT2_SRC_PATH)/source-extracted cd $(LIBGIT2_SRC_PATH) && \ patch -p1 -f < $(SRCDIR)/patches/libgit2-agent-nonfatal.patch --