Commit a138daae authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

cookbook

parent fed940d1
# find all .md files in the directory
mdsrc=$(shell ls *.md)
# map *.mp => *.html for mdsrc
html_from_md=$(mdsrc:%.md=%.html)
all: $(html_from_md)
today:
touch `date +"%Y-%m-%d.md"`
# Implicit rule to know how to make .html from .md
%.html: %.md
include.py $< | \
pandoc --from markdown \
--to html \
--standalone \
--css styles.css \
-o $@
# special rule for debugging variables
print-%:
@echo '$*=$($*)'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment