67 lines
2.0 KiB
Makefile
67 lines
2.0 KiB
Makefile
ALL=$(wildcard *.sty *.tex *.org pictures/*.svg pictures/*.eps pictures/*.dot \
|
|
pictures/*.tex pictures/*.puml)
|
|
PAPER=Marketing_Ivan_Hoerler_Andreas_Zweili
|
|
SHELL=/bin/bash
|
|
PROJECT_ROOT=$(shell pwd)
|
|
|
|
FIGURES_SVG=$(wildcard $(PROJECT_ROOT)/pictures/*.svg)
|
|
FIGURES_EPS=$(wildcard $(PROJECT_ROOT)/pictures/*.eps)
|
|
FIGURES_DOT=$(wildcard $(PROJECT_ROOT)/pictures/*.dot)
|
|
FIGURES_TEX=$(wildcard $(PROJECT_ROOT)/pictures/*.tex)
|
|
FIGURES_PUML=$(wildcard $(PROJECT_ROOT)/pictures/*.puml)
|
|
BIBLIOGRAPHY=$(wildcard *.bib)
|
|
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=.pdf)
|
|
|
|
.PHONY: $(PAPER).pdf all clean
|
|
|
|
all: Marketing_Ivan_Hoerler_Andreas_Zweili.pdf ## Build full thesis (LaTeX + figures)
|
|
|
|
$(PAPER).pdf: $(SVG_PDF) $(EPS_PDF) $(DOT_PDF) $(TEX_PDF) \
|
|
$(PUML_PDF) $(BIBLIOGRAPHY)
|
|
latexmk -quiet -pdf -pdflatex="pdflatex -interaction=nonstopmode" \
|
|
-use-make $(PAPER).tex
|
|
|
|
clean: ## Clean LaTeX and output figure files
|
|
latexmk -c $(PAPER).tex
|
|
rm -f $(SVG_PDF)
|
|
rm -f $(EPS_PDF)
|
|
rm -f $(DOT_PDF)
|
|
rm -f $(PUML_PDF)
|
|
rm -f *.acn
|
|
rm -f *.acr
|
|
rm -f *.alg
|
|
rm -f *.aux
|
|
rm -f *.bbl
|
|
rm -f *.glo
|
|
rm -f *.glg
|
|
rm -f *.gls
|
|
rm -f *.ist
|
|
rm -f *.lol
|
|
rm -f *.run.xml
|
|
rm -f *-blx.bib
|
|
rm -rf auto/
|
|
rm -f Marketing.tex
|
|
|
|
distclean: clean
|
|
rm -f $(PAPER).pdf
|
|
|
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
|
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
|
|
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
|
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
|
|
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
|
dot -Tpdf $(PROJECT_ROOT)/$< -o $@
|
|
|
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
|
latexmk -quiet -pdf -outdir=$(PROJECT_ROOT)/pictures \
|
|
-pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
|
|
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.puml
|
|
java -jar ~/bin/plantuml.jar -pdf $(PROJECT_ROOT)/$<
|