Adapt Makefile to file names
This commit is contained in:
parent
806c8c4a95
commit
d670a6e109
4
Makefile
4
Makefile
|
@ -26,7 +26,7 @@ PANDOC_OPTIONS :=
|
||||||
|
|
||||||
# Normally this does not need to be changed:
|
# Normally this does not need to be changed:
|
||||||
# works if the template is local or in ~/.pandoc/templates
|
# works if the template is local or in ~/.pandoc/templates
|
||||||
PANDOC_TMPL := resume.template
|
PANDOC_TMPL := resume.tex
|
||||||
|
|
||||||
## ---- subdirectories (normally, no need to change) ----
|
## ---- subdirectories (normally, no need to change) ----
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ LATEXMK := latexmk $(if $(xelatex),-xelatex,-pdflatex="pdflatex %O %S") \
|
||||||
ymls := $(filter-out $(addprefix $(yml_dir)/,$(EXCLUDE)),$(wildcard $(yml_dir)/*.yml))
|
ymls := $(filter-out $(addprefix $(yml_dir)/,$(EXCLUDE)),$(wildcard $(yml_dir)/*.yml))
|
||||||
texs := $(patsubst %.yml,%.tex,$(ymls))
|
texs := $(patsubst %.yml,%.tex,$(ymls))
|
||||||
pdfs := $(patsubst %.yml,%.pdf,$(ymls))
|
pdfs := $(patsubst %.yml,%.pdf,$(ymls))
|
||||||
bibs := $(wildcard $(yml_dir)/*.bib)
|
#bibs := $(wildcard $(yml_dir)/*.bib)
|
||||||
|
|
||||||
$(texs): %.tex: %.yml $(bibs) $(PANDOC_TMPL)
|
$(texs): %.tex: %.yml $(bibs) $(PANDOC_TMPL)
|
||||||
$(PANDOC) -o $@ $< # pandoc template > .tex
|
$(PANDOC) -o $@ $< # pandoc template > .tex
|
||||||
|
|
Loading…
Reference in New Issue