summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2022-05-23 13:47:02 -0700
committerKarl Berry <karl@freefriends.org>2022-05-23 13:47:02 -0700
commitf9fdcdfd0bab5964e1cf89e67e6483fb6db8c2b5 (patch)
tree020e91d8090cd166fd50dce5257dd489deeeb98a
parentfee9a828bcc968656edfc89e38b157c28d6335f0 (diff)
downloadautomake-f9fdcdfd0bab5964e1cf89e67e6483fb6db8c2b5.tar.gz
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.
-rw-r--r--NEWS2
-rw-r--r--THANKS2
-rw-r--r--lib/am/depend.am4
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