Re: Makefile help!

2019-10-20 Thread karl
foxfanfare: ... > I can now make all the different parts, create automatically the layout of a > piano 4-hands score, and move all the generate files in the appropriate > directories. I don't know if this solution is a "good way" of using make, > what do you think? At least, it seems to work... :)

Re: Makefile help!

2019-10-20 Thread karl
> Karl Hammar wrote > > Where have you found that? > > In the LilyPond documentation: > http://lilypond.org/doc/v2.19/Documentation/usage/make-and-makefiles Ok, that Makefile has a VPATH which makes sure make finds the pdf's, but the MIDI directory is missing in the VPATH. ... > So I guess the

Re: Makefile help!

2019-10-20 Thread foxfanfare
foxfanfare wrote > Thanks for the idea. I will look into that, but if I understand correctly, > I > have to launch the command separately from the Makefile? The idea was to > include everything in it... But since I obviously have to change the > beginning of my Makefile and get rid of the "%.pdf %.

Re: Makefile help!

2019-10-20 Thread foxfanfare
Karl Hammar wrote > Where have you found that? In the LilyPond documentation: http://lilypond.org/doc/v2.19/Documentation/usage/make-and-makefiles I think I found the problem and it is related to that part. I copied the beginning of the example you can see in the documentation, for instance: CPU

Re: Makefile help!

2019-10-20 Thread karl
foxfanfare: > Karl Hammar wrote > > piano-solo.%.pdf: piano-solo.%.ly \ > > $(general) \ > > dialogs.%.ily \ > > global.%.ily \ > > notes.piano-solo.%.ily \ > > pedals.%.ily > > ... > > Little update for those interested by that problem, actually, that solution > doesn't work p

Re: Makefile help!

2019-10-20 Thread karl
foxfanfare: > Another question... In the documentation page, about Make, there is that > rule which will make the PDF and the MIDI and move them in their own > directory. Where have you found that? > %.pdf %.midi: %.ly > $(LILY_CMD) $<; \ > if test -f "$*.pdf"; then \ >

Re: Makefile help!

2019-10-20 Thread foxfanfare
Karl Hammar wrote > piano-solo.%.pdf: piano-solo.%.ly \ > $(general) \ > dialogs.%.ily \ > global.%.ily \ > notes.piano-solo.%.ily \ > pedals.%.ily > ... Little update for those interested by that problem, actually, that solution doesn't work properly. In that example

Re: Makefile help!

2019-10-19 Thread foxfanfare
Hi all, Another question... In the documentation page, about Make, there is that rule which will make the PDF and the MIDI and move them in their own directory. %.pdf %.midi: %.ly $(LILY_CMD) $<; \ if test -f "$*.pdf"; then \ mv "$*.pdf" PDF/; \ fi; \ i

Re: Makefile help!

2019-10-17 Thread foxfanfare
foxfanfare wrote > I can now choose which piece I want to generate, but do you know how I can > also generate all the 35 pieces with the same command? (if possible) I just understood how to achieve that, sorry for the noise! -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___

Re: Makefile help!

2019-10-17 Thread foxfanfare
Karl Hammar wrote > Try something like: > > piano-solo.%.pdf: piano-solo.%.ly \ > $(general) \ > dialogs.%.ily \ > global.%.ily \ > notes.piano-solo.%.ily \ > pedals.%.ily > ... > > Have a look at "Syntax of Static Pattern Rules" in make documentation > $ info make >

Re: Makefile help!

2019-10-16 Thread karl
foxfanfare: > piano-solo.01.pdf: piano-solo.01.ly \ > $(general) \ > dialogs.01.ily \ > global.01.ily \ > notes.piano-solo.01.ily \ > pedals.01.ily ... > ... and so on! Is there a better way to write this only one time? Try something like: piano-solo.%.pdf: piano-sol