diff options
author | Case Duckworth | 2015-04-18 13:59:29 -0700 |
---|---|---|
committer | Case Duckworth | 2015-04-18 13:59:29 -0700 |
commit | bccfb001ad3c250c2fd7c11b92c247abefe8233e (patch) | |
tree | a1ca5693c9d350bfd1d38ddf503539633b508607 /makefile | |
parent | Revise abstract & add to index.html (diff) | |
download | autocento-bccfb001ad3c250c2fd7c11b92c247abefe8233e.tar.gz autocento-bccfb001ad3c250c2fd7c11b92c247abefe8233e.zip |
Move frontmatter to front-matter; add colophon
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 24 |
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 {{{ |
6 | appendixd := appendix | 6 | appendixd := appendix |
7 | backlinkd := backlinks | 7 | backlinkd := backlinks |
8 | hapaxd := hapax | 8 | frontmatterd := front-matter |
9 | scriptd := scripts | 9 | hapaxd := hapax |
10 | templated := templates | 10 | scriptd := scripts |
11 | textd := text | 11 | templated := templates |
12 | trunkd := trunk | 12 | textd := text |
13 | wipd := wip | 13 | trunkd := trunk |
14 | wipd := wip | ||
14 | 15 | ||
15 | compiler := bash $(scriptd)/compile.sh | 16 | compiler := bash $(scriptd)/compile.sh |
16 | texts := $(wildcard $(textd)/*.txt) | 17 | texts := $(wildcard $(textd)/*.txt) |
18 | frontmatter := $(wildcard $(frontmatterd)/*.txt) | ||
17 | 19 | ||
18 | htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) | 20 | htmls = $(patsubst $(textd)/%.txt,%.html,$(texts)) \ |
21 | $(patsubst $(frontmatterd)/%.txt,%.html,$(frontmatter)) | ||
19 | htmlWriter := html5 | 22 | htmlWriter := html5 |
20 | htmlTemplate := $(templated)/page.html | 23 | htmlTemplate := $(templated)/page.html |
21 | htmlFilter := $(scriptd)/versify.exe | 24 | htmlFilter := $(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 | # }}} |