From: John Mandereau Date: Sat, 23 Feb 2008 14:42:14 +0000 (+0100) Subject: lilypond-book: touch .texi output files already up to date X-Git-Tag: release/2.11.41-1~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d316d4480933acdf03c6501f2ca26cb0c18acb85;p=lilypond.git lilypond-book: touch .texi output files already up to date --- 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