about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/makefile b/makefile index 5ba127c..890d33c 100644 --- a/makefile +++ b/makefile
@@ -3,19 +3,22 @@
3# vim: fdm=marker 3# vim: fdm=marker
4 4
5# variables {{{ 5# variables {{{
6appendixd := appendix 6appendixd := appendix
7backlinkd := backlinks 7backlinkd := backlinks
8hapaxd := hapax 8frontmatterd := front-matter
9scriptd := scripts 9hapaxd := hapax
10templated := templates 10scriptd := scripts
11textd := text 11templated := templates
12trunkd := trunk 12textd := text
13wipd := wip 13trunkd := trunk
14wipd := wip
14 15
15compiler := bash $(scriptd)/compile.sh 16compiler := bash $(scriptd)/compile.sh
16texts := $(wildcard $(textd)/*.txt) 17texts := $(wildcard $(textd)/*.txt)
18frontmatter := $(wildcard $(frontmatterd)/*.txt)
17 19
18htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) 20htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) \
21 $(patsubst $(frontmatterd)/%.txt,%.html,$(frontmatter))
19htmlWriter := html5 22htmlWriter := html5
20htmlTemplate := $(templated)/page.html 23htmlTemplate := $(templated)/page.html
21htmlFilter := $(scriptd)/versify.exe 24htmlFilter := $(scriptd)/versify.exe
@@ -80,6 +83,9 @@ again : clean all
80%.html : $(textd)/%.txt $(htmlFilter) $(htmlTemplate) 83%.html : $(textd)/%.txt $(htmlFilter) $(htmlTemplate)
81 pandoc $< -t $(htmlWriter) $(htmlOptions) -o $@ 84 pandoc $< -t $(htmlWriter) $(htmlOptions) -o $@
82 85
86%.html : $(frontmatterd)/%.txt
87 pandoc $< -t $(htmlWriter) $(htmlOptions) -o $@
88
83$(htmlFilter) : $(htmlFilterSrc) 89$(htmlFilter) : $(htmlFilterSrc)
84 ghc --make $< 90 ghc --make $<
85# }}} 91# }}}