16 lines
420 B
Makefile
16 lines
420 B
Makefile
|
PDFDIR=pdf
|
||
|
MDS=$(wildcard *.md)
|
||
|
PDFS=$(patsubst %.md,$(PDFDIR)/%.pdf, $(MDS))
|
||
|
TEMPLATE_ARGS=-V titlepage=true -V titlepage-text-color=000000 -V titlepage-color=B2DFEE -V titlepage-background=./background.pdf
|
||
|
PANDOC_ARGS=-N -V lang=it --template default.latex -s --listings --toc
|
||
|
|
||
|
.PHONY : all
|
||
|
|
||
|
all : $(PDFS)
|
||
|
|
||
|
$(PDFDIR):
|
||
|
mkdir $(PDFDIR)
|
||
|
|
||
|
$(PDFDIR)/%.pdf: %.md $(PDFDIR)
|
||
|
pandoc $(TEMPLATE_ARGS) $(PANDOC_ARGS) $< -o $@
|