From bccfb001ad3c250c2fd7c11b92c247abefe8233e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 18 Apr 2015 13:59:29 -0700 Subject: Move frontmatter to front-matter; add colophon --- makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 5ba127c..890d33c 100644 --- a/makefile +++ b/makefile @@ -3,19 +3,22 @@ # vim: fdm=marker # variables {{{ -appendixd := appendix -backlinkd := backlinks -hapaxd := hapax -scriptd := scripts -templated := templates -textd := text -trunkd := trunk -wipd := wip +appendixd := appendix +backlinkd := backlinks +frontmatterd := front-matter +hapaxd := hapax +scriptd := scripts +templated := templates +textd := text +trunkd := trunk +wipd := wip compiler := bash $(scriptd)/compile.sh texts := $(wildcard $(textd)/*.txt) +frontmatter := $(wildcard $(frontmatterd)/*.txt) -htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) +htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) \ + $(patsubst $(frontmatterd)/%.txt,%.html,$(frontmatter)) htmlWriter := html5 htmlTemplate := $(templated)/page.html htmlFilter := $(scriptd)/versify.exe @@ -80,6 +83,9 @@ again : clean all %.html : $(textd)/%.txt $(htmlFilter) $(htmlTemplate) pandoc $< -t $(htmlWriter) $(htmlOptions) -o $@ +%.html : $(frontmatterd)/%.txt + pandoc $< -t $(htmlWriter) $(htmlOptions) -o $@ + $(htmlFilter) : $(htmlFilterSrc) ghc --make $< # }}} -- cgit 1.4.1-21-gabe81