[07/10] rust: Enable more checks for when to install package files

Message ID 20220201135246.4096955-7-michael.tremer@ipfire.org
State Accepted
Commit 4f6d6c41233b280cc79f09e88adfdd9c88225cf9
Headers
Series [01/10] make.sh: Set a good default for rustc flags |

Commit Message

Michael Tremer Feb. 1, 2022, 1:52 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/Config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/lfs/Config b/lfs/Config
index 3ae5425ee..d2f9c4bf9 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -213,7 +213,7 @@  CARGO_TARGET_CHECK = $(CARGO) metadata --format-version 1 --no-deps | \
 
 define CARGO_INSTALL
 	mkdir -pv "$(CRATE_PATH)" && \
-	if $(call CARGO_TARGET_CHECK,lib); then \
+	if $(call CARGO_TARGET_CHECK,lib) || $(call CARGO_TARGET_CHECK,rlib) || $(call CARGO_TARGET_CHECK,proc-macro); then \
 		awk \
 			'/^\\\[((.+\\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\\[/{f=0}; !f' \
 			< Cargo.toml > Cargo.toml.deps && \