diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2015-08-11 01:51:04 -0700 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2015-08-11 01:58:05 -0700 |
| commit | d49dc0855c3845c1a27639ff6bda372a0def0322 (patch) | |
| tree | 38b5fe0f53c6bb987d5edacc97cafa223193127f /Makefile | |
| parent | 187fdf49b9edd3fce76f38e0af82581bf4f434fe (diff) | |
| download | wedding-booklet-d49dc0855c3845c1a27639ff6bda372a0def0322.tar.gz | |
Factorize layout
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |
