From d161be120c22faf222ec15ca618ee367e4d56575 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 1 Apr 2015 23:16:18 -0700 Subject: Refactor makefile; Add hapax preprocessor --- wip/makefile | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 wip/makefile (limited to 'wip/makefile') diff --git a/wip/makefile b/wip/makefile deleted file mode 100644 index 88ff6c9..0000000 --- a/wip/makefile +++ /dev/null @@ -1,48 +0,0 @@ -# MAKEFILE for Autocento of the breakfast table -# by Case Duckworth | case.duckworth@gmail.com | autocento.me -# inspired by Lincoln Mullen | lincolnmullen.com -# vim: fdm=marker - -# Define variables {{{ -srcs := $(wildcard *.txt) -trunk:= trunk -versifyer = $(trunk)/versify.exe -versifySrc= $(trunk)/versify.hs - -htmlBlackList = index.html template.html index-txt.html -htmls = $(filter-out $(htmlBlackList),$(patsubst %.txt,%.html,$(srcs))) -htmlTemplate = template.html -htmlPandocOptions = --template=$(htmlTemplate) -htmlPandocOptions+= --filter=$(versifyer) -htmlPandocOptions+= --smart --mathml --section-divs - -backBlackList = "hapax.txt|first-lines.txt|common-titles.txt" -backSrcs = $(patsubst %.html,%.back,$(htmls)) -backs = $(patsubst %.back, %_backlinks.htm,$(backSrcs)) -backHead = $(trunk)/backlink.head - -hapaxBlackList = first-lines.txt common-titles.txt hapax.txt -hapaxs = $(patsubst %.txt,%.hapax,$(srcs)) -hapaxer = $(trunk)/hapax.lua -hapaxHead = $(trunk)/hapax.head -hapaxTemp = hapax.tmp -hapaxOut = hapax.txt - -lozengeOut = $(trunk)/lozenge.js -# }}} - -.PHONY: all -all: $(versifyer) htmls backlinks -.PHONY: htmls -htmls: $(htmls) -.PHONY: backlinks -backlinks: $(backs) - -$(versifyer): $(versifySrc) - ghc --make $(versifySrc) - -%.html: %.txt template.html $(versifyer) - pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ - -%_backlinks.htm: %.back - pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ -- cgit 1.4.1-21-gabe81