summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-08-11 01:51:04 -0700
committerThibaut Horel <thibaut.horel@gmail.com>2015-08-11 01:58:05 -0700
commitd49dc0855c3845c1a27639ff6bda372a0def0322 (patch)
tree38b5fe0f53c6bb987d5edacc97cafa223193127f /Makefile
parent187fdf49b9edd3fce76f38e0af82581bf4f434fe (diff)
downloadwedding-booklet-d49dc0855c3845c1a27639ff6bda372a0def0322.tar.gz
Factorize layout
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)