make sure that all paths are full paths not relative
This is necessary in order to make the Makefile work on OSX
This commit is contained in:
parent
b15b5e674e
commit
1aa98728ce
31
Makefile
31
Makefile
|
@ -2,12 +2,13 @@ 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 pictures/*.svg)
|
||||
FIGURES_EPS=$(wildcard pictures/*.eps)
|
||||
FIGURES_DOT=$(wildcard pictures/*.dot)
|
||||
FIGURES_TEX=$(wildcard pictures/*.tex)
|
||||
FIGURES_PUML=$(wildcard pictures/*.puml)
|
||||
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)
|
||||
|
@ -48,18 +49,18 @@ clean: ## Clean LaTeX and output figure files
|
|||
distclean: clean
|
||||
rm -f $(PAPER).pdf
|
||||
|
||||
pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
||||
inkscape -C -z --file=$< --export-pdf=$@
|
||||
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
||||
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
||||
|
||||
pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
||||
inkscape -C -z --file=$< --export-pdf=$@
|
||||
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
||||
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
||||
|
||||
pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
||||
dot -Tpdf $< -o $@
|
||||
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
||||
dot -Tpdf $(PROJECT_ROOT)/$< -o $@
|
||||
|
||||
pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
||||
latexmk -quiet -pdf -outdir=pictures \
|
||||
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
||||
latexmk -quiet -pdf -outdir=$(PROJECT_ROOT)/pictures \
|
||||
-pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
||||
|
||||
pictures/%.svg: pictures/%.puml
|
||||
java -jar ~/bin/plantuml.jar -tsvg $<
|
||||
$(PROJECT_ROOT)/pictures/%.svg: pictures/%.puml
|
||||
java -jar ~/bin/plantuml.jar -tsvg $(PROJECT_ROOT)/$<
|
||||
|
|
Loading…
Reference in New Issue