diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-24 04:40:17 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-24 04:40:17 -0500 |
commit | c46222fd2c1e02f695b544576f8605676be4d502 (patch) | |
tree | 29893a84cbc8d06c138306ddad63eecabda0d50c /Makefile | |
parent | fee8f8267106650d24b5047ee7e0abfa905f5760 (diff) |
Switch from rdiscount to Pandoc.
But, I am still using ERB for the templating; I wrote my own Ruby Pandoc
bindings because pandoc-ruby sucks; it has more code but does less.
This was slightly painful, as I had to switch all of the articles from my
hacked-on metadata format to Pandoc's format.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -articles = $(patsubst %.md,%,$(wildcard public/*.md)) +articles = $(filter-out public/index,$(patsubst %.md,%,$(wildcard public/*.md))) .DELETE_ON_ERROR: .SECONDARY: @@ -7,7 +7,7 @@ all: public/index.html $(addsuffix .html,$(articles)) public/%.html: public/%.md pagerender.rb template.erb Makefile ./pagerender.rb $< > $@ -public/index.html: $(addsuffix .md,$(articles)) index.rb template.erb Makefile - ./index.rb $(sort $(filter-out Makefile index.rb template.erb,$^)) > $@ +public/index.md: $(addsuffix .md,$(articles)) index.rb Makefile + ./index.rb $(sort $(filter-out Makefile index.rb public/index.md,$^)) > $@ clean: - rm -- public/*.html + rm -f -- public/*.html public/index.md |