Better variable naming for the git revision info command in the Makefile
This commit is contained in:
parent
9701906341
commit
3fb46e24ba
4
Makefile
4
Makefile
@ -5,7 +5,7 @@ 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"`
|
REVISIONINFO = `git log -1 --format="%h"`
|
||||||
|
|
||||||
.SUFFIXES: .lytex .tex .ly .pdf
|
.SUFFIXES: .lytex .tex .ly .pdf
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ $(PDFDIR):
|
|||||||
mkdir -p $(PDFDIR)
|
mkdir -p $(PDFDIR)
|
||||||
|
|
||||||
$(GITINFO): FORCE
|
$(GITINFO): FORCE
|
||||||
echo "\\newcommand{\\revision}{$(OUTPUT)}" > $(GITINFO)
|
echo "\\newcommand{\\revision}{$(REVISIONINFO)}" > $(GITINFO)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTDIR)
|
rm -rf $(OUTDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user