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: Sun, 17 May 2009 23:25:05 +0200 (CEST)

>> A limitation is that the directories in `VPATH' are not expanded
>> and must be given directly (this seems to be undocumented; I'll
>> contact the GNU make people):
> 
> This was my mistake.  I forgot about the `shell' function.  Here's a
> revised version of the Makefile.

And two other corrections: `make' provides the CURDIR variable
automatically, and using `:=' immediately sets `VPATH' to its final
value.


    Werner


======================================================================


piece = stamitz

LILY_CMD = lilypond -ddelete-intermediate-files \
                    -dno-point-and-click

.SUFFIXES: .ly .pdf .midi

VPATH := $(CURDIR)/Scores $(CURDIR)/PDF

%.pdf %.midi: %.ly
        cd PDF; $(LILY_CMD) $<

.PHONY: score
score: ${piece}.pdf




reply via email to

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