Maybe now the revision commands will work on the build server...
This commit is contained in:
parent
9b5b9f3e7e
commit
2703028507
16
Makefile
16
Makefile
@ -5,13 +5,14 @@ GITINFO=revision.tex
|
|||||||
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
||||||
PDF=cd $(OUTDIR) && pdflatex --enable-pipes --shell-escape $(FILE).tex
|
PDF=cd $(OUTDIR) && pdflatex --enable-pipes --shell-escape $(FILE).tex
|
||||||
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
|
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
|
||||||
|
OUTPUT = `git log -1 --format="%h"`
|
||||||
|
|
||||||
.SUFFIXES: .lytex .tex .ly .pdf
|
.SUFFIXES: .lytex .tex .ly .pdf
|
||||||
|
|
||||||
VPATH = \
|
VPATH = \
|
||||||
$(CURDIR)/lyrics \
|
$(CURDIR)/lyrics \
|
||||||
$(CURDIR)/notes \
|
$(CURDIR)/notes \
|
||||||
$(CURDIR)/pdf \
|
$(CURDIR)/pdf \
|
||||||
|
|
||||||
all: book
|
all: book
|
||||||
|
|
||||||
@ -26,17 +27,18 @@ book: $(OUTDIR) $(PDFDIR) $(GITINFO)
|
|||||||
$(INDEX)
|
$(INDEX)
|
||||||
$(PDF)
|
$(PDF)
|
||||||
cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf
|
cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf
|
||||||
rm $(GITINFO)
|
rm $(GITINFO)
|
||||||
|
|
||||||
$(OUTDIR):
|
$(OUTDIR):
|
||||||
mkdir -p $(OUTDIR)
|
mkdir -p $(OUTDIR)
|
||||||
|
|
||||||
$(PDFDIR):
|
$(PDFDIR):
|
||||||
mkdir -p $(PDFDIR)
|
mkdir -p $(PDFDIR)
|
||||||
|
|
||||||
$(GITINFO):
|
$(GITINFO): FORCE
|
||||||
echo "% Autogenerated, do not edit" > $(GITINFO)
|
echo "\\newcommand{\\revision}{$(OUTPUT)}" > $(GITINFO)
|
||||||
echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> $(GITINFO)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTDIR)
|
rm -rf $(OUTDIR)
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
\usepackage{xmpincl}
|
\usepackage{xmpincl}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
|
|
||||||
|
\input{revision.tex}
|
||||||
\input{settings.tex}
|
\input{settings.tex}
|
||||||
\input{headfoot.tex}
|
\input{headfoot.tex}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user