]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
Misc small administrative changes.
[lilypond.git] / scripts / lilypond-book.py
index 23db86898596e024d27ebf73901e40ae26725240..dee8223de6e66d51cdd85f2b6268f963cc2ddba4 100644 (file)
@@ -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