redone the lilypond commands in the makefile
This commit is contained in:
parent
446b361462
commit
6e490e4408
6
Makefile
6
Makefile
@ -1,9 +1,9 @@
|
|||||||
OUTDIR=out
|
OUTDIR=out
|
||||||
PDFDIR=pdf
|
PDFDIR=pdf
|
||||||
FILE = sheet-music_tinwhistle
|
FILE = sheet-music_tinwhistle
|
||||||
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
LILY_PDF = /usr/bin/env lilypond-book --pdf -o $(OUTDIR)
|
||||||
PDF=cd $(OUTDIR) && pdflatex $(FILE).tex
|
PDF=cd $(OUTDIR) && /usr/bin/env pdflatex $(FILE).tex
|
||||||
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
|
INDEX=cd $(OUTDIR) && /usr/bin/env makeindex $(FILE).tex
|
||||||
|
|
||||||
# The suffixes used in this Makefile.
|
# The suffixes used in this Makefile.
|
||||||
.SUFFIXES: .lytex .tex .ly .pdf
|
.SUFFIXES: .lytex .tex .ly .pdf
|
||||||
|
37
Makefile~
Normal file
37
Makefile~
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
OUTDIR=out
|
||||||
|
PDFDIR=pdf
|
||||||
|
FILE = sheet-music_tinwhistle
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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)
|
Loading…
Reference in New Issue
Block a user