cybersecurity_linux/dispensa/Makefile

16 lines
409 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
2024-03-22 09:01:11 +01:00
PANDOC_ARGS=-N -V lang=it --template default.latex -s --toc
2024-03-13 09:34:15 +01:00
.PHONY : all
all : $(PDFS)
$(PDFDIR):
mkdir $(PDFDIR)
$(PDFDIR)/%.pdf: %.md $(PDFDIR)
pandoc $(TEMPLATE_ARGS) $(PANDOC_ARGS) $< -o $@