Werner LEMBERG wrote:
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


Thanks, Werner.  That works perfectly. :)

I've add that to the file, as well as one final target:

archive:
        tar -cvvf stamitz.tar \
        --exclude=*pdf --exclude=*~ \
        --exclude=*midi --exclude=*.tar \
        ../Stamitz/*


Jon
--
Jonathan Kulp
http://www.jonathankulp.com


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to