Skip to content

Instantly share code, notes, and snippets.

@tilarids
Created May 23, 2012 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilarids/2777702 to your computer and use it in GitHub Desktop.
Save tilarids/2777702 to your computer and use it in GitHub Desktop.
Simplest 'static blog generator' concept
# SRC should be specified
OUTPUT_FILES=$(shell find ${SRC} -type f -exec echo {}.html \;)
all: ${OUTPUT_FILES}
echo "All is done"
%.md.html : %.md
python -c "import markdown; md = markdown.Markdown(extensions=['meta']); md.convertFile('$^', '$@')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment