2012-11-14 09:31:44 +00:00
|
|
|
OUTDIR=out
|
|
|
|
PDFDIR=pdf
|
|
|
|
FILE = sheet-music_tinwhistle
|
2012-12-26 02:59:52 +00:00
|
|
|
LILY_PDF = /usr/bin/env lilypond-book --pdf -o $(OUTDIR)
|
|
|
|
PDF=cd $(OUTDIR) && /usr/bin/env pdflatex $(FILE).tex
|
|
|
|
INDEX=cd $(OUTDIR) && /usr/bin/env makeindex $(FILE).tex
|
2012-11-14 09:31:44 +00:00
|
|
|
|
|
|
|
# The suffixes used in this Makefile.
|
|
|
|
.SUFFIXES: .lytex .tex .ly .pdf
|
|
|
|
|
|
|
|
# Input and output files are searched in the directories listed in
|
|
|
|
# the VPATH variable. All of them are subdirectories of the current
|
|
|
|
# directory (given by the GNU make variable `CURDIR').
|
|
|
|
VPATH = \
|
|
|
|
$(CURDIR)/lyrics \
|
|
|
|
$(CURDIR)/notes \
|
|
|
|
$(CURDIR)/pdf \
|
|
|
|
|
|
|
|
all: book
|
|
|
|
|
|
|
|
book: $(OUTDIR) $(PDFDIR)
|
|
|
|
cp headfoot.tex $(OUTDIR)/
|
|
|
|
cp -r images/ $(OUTDIR)/
|
|
|
|
$(LILY_PDF) $(FILE).lytex
|
|
|
|
$(PDF)
|
|
|
|
$(INDEX)
|
|
|
|
$(PDF)
|
|
|
|
cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf
|
|
|
|
|
|
|
|
$(OUTDIR):
|
|
|
|
mkdir -p $(OUTDIR)
|
|
|
|
|
|
|
|
$(PDFDIR):
|
|
|
|
mkdir -p $(PDFDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OUTDIR)
|