On Sat, Mar 15, 2025 at 2:11 PM YTG 1234 <ytg1234.pm...@gmail.com> wrote:
> I've been wondering what the equivalent of cpp -M for Lilypond is, if > there is such a thing. > > It wouldn't be so simple to implement; as well as tracking \includes > recursively, tracking the expected names of output files (as there can > be multiple per source file) is also required. There's probably some > Guile interface for getting all the books generated by a file, but there > would have to be a way to evaluate it without compiling the entire score… > > Any ideas? > For those (like me) who aren't familiar with the C++ compiler flags, here's what Gemini says about it: "The -M flag instructs the compiler to output a makefile rule that describes the dependencies of the source file." That, I would think, would be a simple Python script. But then you say it should track output file names. I don't get the relationship between these two things. So maybe describe more clearly what you want. -- Knute Snortum