From d49dc0855c3845c1a27639ff6bda372a0def0322 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Tue, 11 Aug 2015 01:51:04 -0700 Subject: Factorize layout --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 137444d..73f5625 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ SOURCES=$(wildcard *.ly) +INCLUDES=$(wildcard *.tly) PARTS=$(SOURCES:.ly=.pdf) TDIR=out @@ -6,11 +7,11 @@ book: book.pdf parts: $(PARTS) -%.pdf: %.ly +%.pdf: %.ly $(INCLUDES) lilypond --pdf $< -$(TDIR)/book.tex: book.lytex *.ly - lilypond-book --output=$(TDIR) --pdf $< +$(TDIR)/book.tex: book.lytex $(SOURCES) $(INCLUDES) + lilypond-book --output=$(TDIR) -I ../ --pdf $< %.pdf: %.tex cd $(@D); pdflatex $(