cybersecurity_linux/dispensa/Makefile

16 lines
403 B
Makefile
Raw Normal View History

2024-03-13 09:34:15 +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
.PHONY : all
all : $(PDFS)
$(PDFDIR):
mkdir $(PDFDIR)
$(PDFDIR)/%.pdf: %.md $(PDFDIR)
pandoc $(TEMPLATE_ARGS) $(PANDOC_ARGS) $< -o $@