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 \
>             mv "$*.pdf" PDF/; \
>         fi; \
>         if test -f "$*.midi"; then \
>             mv "$*.midi" MIDI/; \
>         fi

This is strange use of make.

You tell make that to make %.pdf from %.ly, you do something that 
doesn't make the said %.pdf.

If your intention is to make PDF/%.pdf and MIDI/%.midi
you probably should use "PDF/%.pdf MIDI/%.midi: %.ly", since then make
can check the timestamps.

If you just want to have a convenient way to create the said file, why 
not use a script.

...
> Does someone knows how I can test if the filename contains for instance
> versionA in it, then if true, move it to its specific folder? I am
> struggling with that problem for several days now but I'm not able to find
> the solution...

mv *versionA* folder
for i in A B C D; do mv *version$i*.pdf PDF/version$i; done

Regards,
/Karl Hammar



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to