lilypond-devel
[Top][All Lists]
Advanced

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

Re: DOCS: include a sample "Makefile"?


From: Werner LEMBERG
Subject: Re: DOCS: include a sample "Makefile"?
Date: Mon, 18 May 2009 19:03:16 +0200 (CEST)

> For the moment I've added a crude method of putting the midi files in
> the MIDI/ dir:
> 
>    mv PDF/*.midi MIDI/
> 
> If there's a way to automate this it would look nicer. Also, it only
> works on the "make movements" command.  I tried "make stamitzIV.pdf"
> just now and it kept the midi file in the PDF directory. Sigh.

This slight adaptation of the pattern rule does what you want.


%.pdf %.midi: %.ly
        $(LILY_CMD) $<; \
        if test -f "$*.pdf"; then \
          mv "$*.pdf" PDF/; \
        fi; \
        if test -f "$*.midi"; then \
          mv "$*.midi" MIDI/; \
        fi


   Werner




reply via email to

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