add a makefile to the projekthandbuch
This commit is contained in:
parent
f04e2e6d32
commit
1530313f7c
|
@ -52,7 +52,7 @@
|
|||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\lhead{\nouppercase{\leftmark}}
|
||||
\rhead{\includegraphics[width=1cm]{general/ibzlogo.eps}}
|
||||
\rhead{\includegraphics[width=1cm]{general/ibzlogo.pdf}}
|
||||
\cfoot{\thepage}
|
||||
|
||||
%footnotes
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
ALL=$(wildcard *.sty *.tex *.org pictures/*.svg pictures/*.eps pictures/*.dot pictures/*.tex pictures/*.puml)
|
||||
PAPER=projekthandbuch_main.tex
|
||||
SHELL=/bin/bash
|
||||
|
||||
FIGURES_SVG=$(wildcard pictures/*.svg)
|
||||
FIGURES_EPS=$(wildcard pictures/*.eps)
|
||||
FIGURES_DOT=$(wildcard pictures/*.dot)
|
||||
FIGURES_TEX=$(wildcard pictures/*.tex)
|
||||
FIGURES_PUML=$(wildcard pictures/*.puml)
|
||||
SVG_PDF=$(FIGURES_SVG:.svg=.pdf)
|
||||
EPS_PDF=$(FIGURES_EPS:.eps=.pdf)
|
||||
DOT_PDF=$(FIGURES_DOT:.dot=.pdf)
|
||||
TEX_PDF=$(FIGURES_TEX:.tex=.pdf)
|
||||
PUML_PDF=$(FIGURES_PUML:.puml=.svg)
|
||||
|
||||
all: projekthandbuch_main.pdf ## Build full thesis (LaTeX + figures)
|
||||
|
||||
projekthandbuch_main.pdf: $(SVG_PDF) $(EPS_PDF) $(DOT_PDF) $(TEX_PDF) $(PUML_PDF) projekthandbuch.tex general/ibzlogo.pdf
|
||||
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(PAPER)
|
||||
|
||||
clean: ## Clean LaTeX and output figure files
|
||||
latexmk -c
|
||||
rm -f $(SVG_PDF)
|
||||
rm -f $(EPS_PDF)
|
||||
rm -f $(DOT_PDF)
|
||||
rm -f $(PUML_PDF)
|
||||
rm -f projekthandbuch.tex
|
||||
rm -f general/ibzlogo.pdf
|
||||
rm -f *.acn
|
||||
rm -f *.bbl
|
||||
rm -f *.glo
|
||||
rm -f *.ist
|
||||
rm -f *.run.xml
|
||||
rm -f *-blx.bib
|
||||
rm -rf auto/
|
||||
rm -rf general/auto/
|
||||
rm -rf general/style.aux
|
||||
|
||||
pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
||||
inkscape -C -z --file=$< --export-pdf=$@
|
||||
|
||||
pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
||||
inkscape -C -z --file=$< --export-pdf=$@
|
||||
|
||||
general/ibzlogo.pdf: general/ibzlogo.eps
|
||||
inkscape -C -z --file=$< --export-pdf=$@
|
||||
|
||||
pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
||||
dot -Tpdf $< -o $@
|
||||
|
||||
pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
||||
latexmk -pdf -outdir=pictures -pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
||||
|
||||
pictures/%.svg: pictures/%.puml
|
||||
java -jar ~/bin/plantuml.jar -tsvg $<
|
||||
|
||||
projekthandbuch.tex: projekthandbuch.org
|
||||
emacs -l ~/.emacs.d/init.el --batch --eval="(progn (find-file \"projekthandbuch.org\") (org-latex-export-to-latex nil nil nil t))"
|
Reference in New Issue