gistfile1.mak

# 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 # source, and makes them using pandoc %.md.pdf : %.md pandoc $< -o $@ # Remove all PDF outputs clean : rm $(PDFS) # Remove all PDF outputs then build them again rebuild : clean all
Make all markdown files in directory into PDFs

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.