20 lines
368 B
Makefile
20 lines
368 B
Makefile
|
ISSUES != find issues -type d
|
||
|
DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf)
|
||
|
|
||
|
PANDOC != command -v pandoc 2> /dev/null
|
||
|
|
||
|
all: $(DEST_PDF_FILES)
|
||
|
|
||
|
issue-%.pdf: issues/%
|
||
|
$(PANDOC) \
|
||
|
--file-scope \
|
||
|
--from markdown \
|
||
|
--to latex \
|
||
|
--pdf-engine xelatex \
|
||
|
--table-of-contents \
|
||
|
--variable title:"tildeverse zine $@" \
|
||
|
--standalone \
|
||
|
--output $@ \
|
||
|
$</*.md
|
||
|
|