f1355607c4
want is the short revision number. Now it works even on Windows.
36 lines
676 B
Makefile
36 lines
676 B
Makefile
OUTDIR=out
|
|
PDFDIR=pdf
|
|
FILE = sheet-music_tinwhistle
|
|
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
|
PDF=cd $(OUTDIR) && pdflatex --enable-pipes --shell-escape $(FILE).tex
|
|
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
|
|
|
|
.SUFFIXES: .lytex .tex .ly .pdf
|
|
|
|
VPATH = \
|
|
$(CURDIR)/lyrics \
|
|
$(CURDIR)/notes \
|
|
$(CURDIR)/pdf \
|
|
|
|
all: book
|
|
|
|
book: $(OUTDIR) $(PDFDIR)
|
|
cp headfoot.tex $(OUTDIR)/
|
|
cp settings.tex $(OUTDIR)/
|
|
cp -r license/ $(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)
|