introduzione_coding/Makefile

16 lines
420 B
Makefile
Raw Normal View History

2024-02-10 18:43:22 +01:00
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 $@