From 8750fb8013509191cd385cd7b7f9140782166b7c Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 1 Dec 2015 12:27:28 +0100 Subject: [PATCH] update makefile targets --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index db732a2..9d3125b 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ SCORESDIR = $(SRCDIR)/scores LYRICSDIR = $(SRCDIR)/lyrics OUTPUTFILE = $(OUTDIR)/singalongs.tex - +TEXFILES = $(wildcard $(SRCDIR)/*.tex) SCORES = $(wildcard $(SCORESDIR)/*.ly) LYRICS = $(wildcard $(LYRICSDIR)/*.tex) PDFS = $(patsubst %.ly,$(PDFDIR)/%.pdf,$(notdir $(SCORES))) @@ -52,8 +52,8 @@ book: $(BOOKPDF) booklet: $(BOOKLETPDF) -$(BOOKPDF): | $(PDFDIR) $(OUTDIR) - @$(CP) $(SRCDIR)/*.tex $(OUTDIR)/ +$(BOOKPDF): $(TEXFILES) $(SCORES) $(LYRICS) | $(PDFDIR) $(OUTDIR) + @$(CP) $(TEXFILES) $(OUTDIR)/ @$(CP) -r lib/* $(OUTDIR)/ @$(CP) -r $(SRCDIR)/images $(OUTDIR)/images