lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master fb2b1357 4/6: Pass multiple files to 'install


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fb2b1357 4/6: Pass multiple files to 'install' without looping
Date: Sat, 23 Jul 2022 16:21:51 -0400 (EDT)

branch: master
commit fb2b1357e5d3a17cc71aaa7b23a765955d812950
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Pass multiple files to 'install' without looping
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2022-07/msg00091.html
---
 GNUmakefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 6e99ed13..a27baa18 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -236,9 +236,8 @@ $(build_dir): $(gpl_files)
        +@[ -d $(localbindir)     ] || $(MKDIR) --parents $(localbindir)
        +@[ -d $(locallibdir)     ] || $(MKDIR) --parents $(locallibdir)
        +@[ -d $(localincludedir) ] || $(MKDIR) --parents $(localincludedir)
-       +@for z in $(compiler_runtime_files); do \
-           $(INSTALL) -c -m 0775 -c $$z $(localbindir) ; \
-         done;
+       +@[ -z "$(strip $(compiler_runtime_files))" ] \
+         || $(INSTALL) -c -m 0775 -c $(compiler_runtime_files) $(localbindir)
        +@$(MAKETARGET)
 
 % :: $(build_dir) ; @:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]