aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-09-08 14:54:33 -0700
committerJunio C Hamano <gitster@pobox.com>2025-09-08 14:54:34 -0700
commit8d5e4290a73069466f34743993f23cad1fe90fc2 (patch)
tree51c4ec67fc9a98bc669f40e2bfa7c65cdf77c932 /Makefile
parent2462961280690837670d997bde64bd4ebf8ae66d (diff)
parent0eeacde50e71cc320016f0bcf9f8b17d5168cbfd (diff)
downloadgit-8d5e4290a73069466f34743993f23cad1fe90fc2.tar.xz
Merge branch 'da/cargo-serialize'
Makefile tried to run multiple "cargo build" which would not work very well; serialize their execution to work it around. * da/cargo-serialize: Makefile: build libgit-rs and libgit-sys serially
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 555b7f4dc3..5474199f40 100644
--- a/Makefile
+++ b/Makefile
@@ -3945,13 +3945,12 @@ unit-tests: $(UNIT_TEST_PROGS) $(CLAR_TEST_PROG) t/helper/test-tool$X
$(MAKE) -C t/ unit-tests
.PHONY: libgit-sys libgit-rs
-libgit-sys libgit-rs:
- $(QUIET)(\
- cd contrib/$@ && \
- cargo build \
- )
+libgit-sys:
+ $(QUIET)cargo build --manifest-path contrib/libgit-sys/Cargo.toml
+libgit-rs: libgit-sys
+ $(QUIET)cargo build --manifest-path contrib/libgit-rs/Cargo.toml
ifdef INCLUDE_LIBGIT_RS
-all:: libgit-sys libgit-rs
+all:: libgit-rs
endif
LIBGIT_PUB_OBJS += contrib/libgit-sys/public_symbol_export.o