Adapt Makefile to file names

This commit is contained in:
coolneng 2019-07-01 20:23:05 +02:00
parent 806c8c4a95
commit d670a6e109
1 changed files with 2 additions and 2 deletions

View File

@ -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