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)
|
pictures/*.tex pictures/*.puml)
|
||||||
PAPER=Marketing_Ivan_Hoerler_Andreas_Zweili
|
PAPER=Marketing_Ivan_Hoerler_Andreas_Zweili
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
PROJECT_ROOT=$(shell pwd)
|
||||||
|
|
||||||
FIGURES_SVG=$(wildcard pictures/*.svg)
|
FIGURES_SVG=$(wildcard $(PROJECT_ROOT)/pictures/*.svg)
|
||||||
FIGURES_EPS=$(wildcard pictures/*.eps)
|
FIGURES_EPS=$(wildcard $(PROJECT_ROOT)/pictures/*.eps)
|
||||||
FIGURES_DOT=$(wildcard pictures/*.dot)
|
FIGURES_DOT=$(wildcard $(PROJECT_ROOT)/pictures/*.dot)
|
||||||
FIGURES_TEX=$(wildcard pictures/*.tex)
|
FIGURES_TEX=$(wildcard $(PROJECT_ROOT)/pictures/*.tex)
|
||||||
FIGURES_PUML=$(wildcard pictures/*.puml)
|
FIGURES_PUML=$(wildcard $(PROJECT_ROOT)/pictures/*.puml)
|
||||||
BIBLIOGRAPHY=$(wildcard *.bib)
|
BIBLIOGRAPHY=$(wildcard *.bib)
|
||||||
SVG_PDF=$(FIGURES_SVG:.svg=.pdf)
|
SVG_PDF=$(FIGURES_SVG:.svg=.pdf)
|
||||||
EPS_PDF=$(FIGURES_EPS:.eps=.pdf)
|
EPS_PDF=$(FIGURES_EPS:.eps=.pdf)
|
||||||
|
@ -48,18 +49,18 @@ clean: ## Clean LaTeX and output figure files
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f $(PAPER).pdf
|
rm -f $(PAPER).pdf
|
||||||
|
|
||||||
pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
|
||||||
inkscape -C -z --file=$< --export-pdf=$@
|
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
||||||
|
|
||||||
pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.eps ## Figures for the manuscript
|
||||||
inkscape -C -z --file=$< --export-pdf=$@
|
inkscape -C -z --file=$(PROJECT_ROOT)/$< --export-pdf=$@
|
||||||
|
|
||||||
pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.dot ## Figures for the manuscript
|
||||||
dot -Tpdf $< -o $@
|
dot -Tpdf $(PROJECT_ROOT)/$< -o $@
|
||||||
|
|
||||||
pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
$(PROJECT_ROOT)/pictures/%.pdf: pictures/%.tex ## Figures for the manuscript
|
||||||
latexmk -quiet -pdf -outdir=pictures \
|
latexmk -quiet -pdf -outdir=$(PROJECT_ROOT)/pictures \
|
||||||
-pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
-pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
||||||
|
|
||||||
pictures/%.svg: pictures/%.puml
|
$(PROJECT_ROOT)/pictures/%.svg: pictures/%.puml
|
||||||
java -jar ~/bin/plantuml.jar -tsvg $<
|
java -jar ~/bin/plantuml.jar -tsvg $(PROJECT_ROOT)/$<
|
||||||
|
|
Loading…
Reference in New Issue
Block a user