From f9fdcdfd0bab5964e1cf89e67e6483fb6db8c2b5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 23 May 2022 13:47:02 -0700 Subject: 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 -- cgit v1.2.1