Skip to content

Commit

Permalink
custom yaml file
Browse files Browse the repository at this point in the history
allow changing the yaml file when executing the make command
  • Loading branch information
pedro-nonfree authored and pedrolab committed Jan 13, 2020
1 parent 08bbe35 commit dd0ac3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
TEX = pandoc
src = template.tex details.yml
tex_src = template.tex
FLAGS = --pdf-engine=xelatex

output.pdf : $(src)
Expand All @@ -8,3 +9,9 @@ output.pdf : $(src)
.PHONY: clean
clean :
rm output.pdf

# with custom yaml file
# substitute ".yml" for output -> src https://www.gnu.org/software/make/manual/html_node/Text-Functions.html
.PHONY: with
with :
$(TEX) $(yml) -o $(subst .yml,,$(yml)).pdf --template=$(tex_src) $(FLAGS)

0 comments on commit dd0ac3d

Please sign in to comment.