Skip to content

Instantly share code, notes, and snippets.

@eliaszica
eliaszica / gist:259aad12b0714de3ddc26491d06a1382
Created May 30, 2017 12:33 — forked from lmullen/gist:3767386
Make all markdown files in directory into PDFs
# Produce PDFs from all Markdown files in a directory
# Lincoln Mullen | http://lincolnmullen.com | lincoln@lincolnmullen.com
# List files to be made by finding all *.md files and appending .pdf
PDFS := $(patsubst %.md,%.md.pdf,$(wildcard *.md))
# The all rule makes all the PDF files listed
all : $(PDFS)
# This generic rule accepts PDF targets with corresponding Markdown