-$(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
- cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation
+
+
+# There used to be a dependency on a dummy target, to force a rebuild
+# of lilypond-internals every time. however, this triggers
+# compilation during install, which is a bad thing (tm).
+
+$(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi: $(builddir)/lily/$(outconfbase)/lilypond-bin
+ cd $(outdir) && $(builddir)/lily/$(outconfbase)/lilypond-bin --verbose $(abs-srcdir)/ly/generate-documentation
+ rm -f $(outdir)/lilypond-internals.nexi