summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
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 $(<F)