Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Refsum Jensenius alexarje

View GitHub Profile
@lmullen
lmullen / gist:3767386
Created Sep 22, 2012
Make all markdown files in directory into PDFs
View gist:3767386
# 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