diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 13:47:42 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 13:47:42 -0400 |
commit | 6a42c8de66e3b2dc7293ddeadaa3ee396db2624d (patch) | |
tree | 67a027b892d3122662526504dd6d11e8dea02ca1 /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4255c4d --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +articles = $(patsubst %.md,%,$(wildcard public/*.md)) + +.SECONDARY: + +all: public/index.html $(addsuffix .html,$(articles)) $(addsuffix .raw.html,$(articles)) + +public/%.raw.html: public/%.md Makefile + rdiscount $< > $@ +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,$^)) > $@ +clean: + rm -- public/*.html |