From d316d4480933acdf03c6501f2ca26cb0c18acb85 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Sat, 23 Feb 2008 15:42:14 +0100 Subject: [PATCH] lilypond-book: touch .texi output files already up to date --- scripts/lilypond-book.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 23db868985..dee8223de6 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -1641,6 +1641,11 @@ def write_if_updated (file_name, lines): if oldstr == new_str: progress (_ ("%s is up to date.") % file_name) progress ('\n') + + # this prevents make from always rerunning lilypond-book: + # .texi target must be touched in order to be up to date + if global_options.format == 'texinfo': + os.utime (file_name, None) return except: pass -- 2.39.5