[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing makefile for simple project
From: |
Jonathan Kulp |
Subject: |
Re: Writing makefile for simple project |
Date: |
Sat, 25 Jun 2011 19:44:45 -0500 |
On Sat, Jun 25, 2011 at 7:25 PM, Jesse Engle <address@hidden> wrote:
>> Can you post the text of your makefile so we can see what you've tried so
>> far?
>
> PIECE=ritual
> INCDIR=include
> INCS=$(INCDIR)/defs.ly \
> $(INCDIR)/three-stroke-ruff.ily \
> $(INCDIR)/single-drag.ily
>
> $(PIECE).pdf: main.ly $(INCS)
> lilypond $(OPTS) -o $(PIECE) $<; \
> if test -f "$*.pdf"; then
> mv "$*.pdf" build; \
> fi
>
> This outputs the following:
>
> make: *** No rule to make target `include/defs.ly', needed by
> `ritual.pdf'. Stop.
>
> I don't know whether or not to use the automatic variables defined by
> make, and I'm also unsure about using the VPATH variable... Also, do I
> need to specify the .midi target separately? Help! :) ...Jesse
>
Although I added the Makefile section to the docs, I'm not a Makefile
guru and I had a LOT of help from more experienced folks on this list.
It looks like there's no target defined in your makefile. Try adding
something like this:
.PHONY: score
score: $(PIECE).pdf
Then do the command "make score" and see what happens.
I'm also going to post a working Makefile of my own on pastebin for
you to peruse if you want:
http://pastebin.com/1zAHCSCK
--
Jonathan Kulp
http://www.jonathankulp.com