From 9b3a705d4b0ac9100329528f19606520aa3fec39 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 23 Sep 2019 10:21:43 -0400 Subject: [PATCH] makefile pandoc magic --- .gitignore | 1 + Makefile | 19 +++++++++++++++++++ ...iving_into_the_depths_of_the_tildeverse.md | 2 ++ issues/1/metadata.yml | 1 + social_git.md => issues/1/social_git.md | 2 ++ .../1/you_wanna_make_a_tilde.md | 2 ++ 6 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile rename diving_into_the_depths_of_the_tildeverse.md => issues/1/diving_into_the_depths_of_the_tildeverse.md (99%) create mode 100644 issues/1/metadata.yml rename social_git.md => issues/1/social_git.md (99%) rename you_wanna_make_a_tilde.md => issues/1/you_wanna_make_a_tilde.md (99%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..036ac76 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +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 $@ \ + $