automake-commit
[Top][All Lists]
Advanced

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

[automake-commit] branch master updated: deps: create empty file instead


From: Karl Berry
Subject: [automake-commit] branch master updated: deps: create empty file instead of dummy file.
Date: Mon, 23 May 2022 16:47:13 -0400

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=f9fdcdfd0bab5964e1cf89e67e6483fb6db8c2b5

The following commit(s) were added to refs/heads/master by this push:
     new f9fdcdfd0 deps: create empty file instead of dummy file.
f9fdcdfd0 is described below

commit f9fdcdfd0bab5964e1cf89e67e6483fb6db8c2b5
Author: Jan Engelhardt <jengelh@inai.de>
AuthorDate: Mon May 23 13:47:02 2022 -0700

    deps: create empty file instead of dummy file.
    
    This change is per an automake thread, see both before and after:
    https://lists.gnu.org/archive/html/automake/2022-05/msg00006.html
    
    * lib/am/depend.am ($(am__depfiles_remade)): create empty files
    for dependencies instead of files with a line '# dummy'. Turns out
    this is noticeably faster.
    * THANKS: update Jan's email address.
    * NEWS: mention this.
---
 NEWS             | 2 ++
 THANKS           | 2 +-
 lib/am/depend.am | 4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 8a1cbed49..3a9ede1a6 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ New in 1.17:
   - Generated file timestamp checks now handle filesystems with sub-second
     timestamp granularity dynamically.
 
+  - Dependency files are now empty, instead of '# dummy', for speed.
+
   - Systems with non-POSIX "rm -f" behavior are now supported, and intent to
     drop support for them has been reversed.  The ACCEPT_INFERIOR_RM_PROGRAM
     setting no longer exists.
diff --git a/THANKS b/THANKS
index 41e15eb73..f2f3188ce 100644
--- a/THANKS
+++ b/THANKS
@@ -177,7 +177,7 @@ James Bostock                   james.bostock@gmail.com
 James Henstridge                james@daa.com.au
 James R. Van Zandt              jrv@vanzandt.mv.com
 James Youngman                  jay@gnu.org
-Jan Engelhardt                  jengelh@medozas.de
+Jan Engelhardt                  jengelh@inai.de
 Janos Farkas                    chexum@shadow.banki.hu
 Jared Davis                     abiword@aiksaurus.com
 Jason DeVinney                  jasondevinney@gmail.com
diff --git a/lib/am/depend.am b/lib/am/depend.am
index ecc6180a6..ecea1fcaa 100644
--- a/lib/am/depend.am
+++ b/lib/am/depend.am
@@ -18,7 +18,9 @@ am__mv = mv -f
 
 $(am__depfiles_remade):
        @$(MKDIR_P) $(@D)
-       @echo '# dummy' >$@-t && $(am__mv) $@-t $@
+       @: >>$@
+## It's faster to create an empty file, hence :. See thread before and after
+## https://lists.gnu.org/archive/html/automake/2022-05/msg00006.html.
 
 am--depfiles: $(am__depfiles_remade)
 .PHONY: am--depfiles



reply via email to

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