]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-book: touch .texi output files already up to date
authorJohn Mandereau <john.mandereau@gmail.com>
Sat, 23 Feb 2008 14:42:14 +0000 (15:42 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Sat, 23 Feb 2008 14:42:14 +0000 (15:42 +0100)
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