lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identify included files


From: antlists
Subject: Re: Identify included files
Date: Mon, 18 May 2020 13:29:19 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 15/05/2020 21:17, Fr. Samuel Springuel wrote:
Now I just need to turn this list into something that can be used to figure out 
if the target needs to be recompiled.

As Jacques said, "make".

At the top of your directory structure you can have a makefile, and it just contains a list of all your targets, and the files they depend on. Okay, every time you add a new include, you need to update it, but...

Then when you change something, you just go to your top directory, type "make", and watch everything affected by your recent changes recompile.

The really nice thing about it, is it will handle recursive includes by itself. Can't remember the syntax, but if an include file pulls in other includes, you can define that include file as a target, which then flags any other that targets that use it. So each target in your makefile only needs to include the includes that it depends *directly* upon.

Cheers,
Wol



reply via email to

[Prev in Thread] Current Thread [Next in Thread]