]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rust: Enable more checks for when to install package files
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jan 2022 13:59:20 +0000 (13:59 +0000)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 29 Jan 2022 20:21:59 +0000 (21:21 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config

index 3ae5425ee419526757a523b061ebe12a54b308a4..d2f9c4bf9401fe732ee0d61212c34b2ee69e4646 100644 (file)
@@ -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 && \