Makefile copies the gitinfo file to the build directory
This commit is contained in:
parent
493705fc1b
commit
3b98e1aeee
1
Makefile
1
Makefile
@ -19,6 +19,7 @@ VPATH = \
|
||||
all: book
|
||||
|
||||
book: $(OUTDIR) $(PDFDIR)
|
||||
cp gitHeadInfo.gin $(OUTDIR)/
|
||||
cp headfoot.tex $(OUTDIR)/
|
||||
cp settings.tex $(OUTDIR)/
|
||||
cp -r license/ $(OUTDIR)/
|
||||
|
40
Makefile~
Normal file
40
Makefile~
Normal file
@ -0,0 +1,40 @@
|
||||
OUTDIR=out
|
||||
PDFDIR=pdf
|
||||
FILE = sheet-music_tinwhistle
|
||||
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
||||
PDF=cd $(OUTDIR) && pdflatex $(FILE).tex
|
||||
INDEX=cd $(OUTDIR) && 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 gitHeadInfo.gin $(OUTDIR)/
|
||||
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)
|
15
gitHeadInfo.gin
Normal file
15
gitHeadInfo.gin
Normal file
@ -0,0 +1,15 @@
|
||||
\usepackage[%
|
||||
shash={493705f},
|
||||
lhash={493705fc1bfdeb7b67eb3ae169f621806f0d838f},
|
||||
authname={Sebastian Hugentobler},
|
||||
authemail={sebastian@nulda.ch},
|
||||
authsdate={2013-04-07},
|
||||
authidate={2013-04-07 21:44:40 +0200},
|
||||
authudate={1365363880},
|
||||
commname={Sebastian Hugentobler},
|
||||
commemail={sebastian@nulda.ch},
|
||||
commsdate={2013-04-07},
|
||||
commidate={2013-04-07 21:44:40 +0200},
|
||||
commudate={1365363880},
|
||||
refnames={ (HEAD, master)}
|
||||
]{gitsetinfo}
|
@ -6,7 +6,7 @@
|
||||
\usepackage{geometry}
|
||||
\usepackage{xmpincl}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{gitinfo}
|
||||
\usepackage[grumpy]{gitinfo}
|
||||
|
||||
\input{settings.tex}
|
||||
\input{headfoot.tex}
|
||||
|
Loading…
Reference in New Issue
Block a user