[Top][All Lists]

[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:;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 <>
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:
    * lib/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/ | 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 Henstridge      
 James R. Van Zandt    
 James Youngman        
-Jan Engelhardt        
+Jan Engelhardt        
 Janos Farkas          
 Jared Davis           
 Jason DeVinney        
diff --git a/lib/am/ b/lib/am/
index ecc6180a6..ecea1fcaa 100644
--- a/lib/am/
+++ b/lib/am/
@@ -18,7 +18,9 @@ am__mv = mv -f
        @$(MKDIR_P) $(@D)
-       @echo '# dummy' >$@-t && $(am__mv) $@-t $@
+       @: >>$@
+## It's faster to create an empty file, hence :. See thread before and after
 am--depfiles: $(am__depfiles_remade)
 .PHONY: am--depfiles

reply via email to

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