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