From 3b98e1aeee056846284d6221560fba4837cdec78 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sun, 7 Apr 2013 21:48:46 +0200 Subject: [PATCH] Makefile copies the gitinfo file to the build directory --- Makefile | 1 + Makefile~ | 40 ++++++++++++++++++++++++++++++++++++ gitHeadInfo.gin | 15 ++++++++++++++ sheet-music_tinwhistle.lytex | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 Makefile~ create mode 100644 gitHeadInfo.gin diff --git a/Makefile b/Makefile index ae4fe3b..a3e001f 100644 --- a/Makefile +++ b/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)/ diff --git a/Makefile~ b/Makefile~ new file mode 100644 index 0000000..ebb6edd --- /dev/null +++ b/Makefile~ @@ -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) diff --git a/gitHeadInfo.gin b/gitHeadInfo.gin new file mode 100644 index 0000000..73fe2ba --- /dev/null +++ b/gitHeadInfo.gin @@ -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} \ No newline at end of file diff --git a/sheet-music_tinwhistle.lytex b/sheet-music_tinwhistle.lytex index 18ecf15..b2975bf 100644 --- a/sheet-music_tinwhistle.lytex +++ b/sheet-music_tinwhistle.lytex @@ -6,7 +6,7 @@ \usepackage{geometry} \usepackage{xmpincl} \usepackage{hyperref} -\usepackage{gitinfo} +\usepackage[grumpy]{gitinfo} \input{settings.tex} \input{headfoot.tex}