From 2024d1fe9487855f0b0cfd5194b2a8de003f5064 Mon Sep 17 00:00:00 2001 From: Daniel Bosk Date: Tue, 3 Nov 2020 11:06:24 +0100 Subject: [PATCH] Try to workaround not functioning md to html conversion The line ${CONVERT.md.html} works in a target, but the patterns don't work. --- doc.mk.nw | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc.mk.nw b/doc.mk.nw index 651f416..ac358a4 100644 --- a/doc.mk.nw +++ b/doc.mk.nw @@ -310,11 +310,11 @@ TEX2HTMLFLAGS?= -s CONVERT.tex.html?= ${TEX2HTML} ${TEX2HTMLFLAGS} -o $@ $< @ Then we can provide following two rules: <>= -define to_html_rule -%.html: %.$(1) - ${CONVERT.$(1).html} -endef -$(foreach suf,md tex,$(eval $(call to_html_rule,${suf}))) +%.html: %.md + ${CONVERT.md.html} + +%.html: %.tex + ${CONVERT.tex.html} @ There are times when we want to convert out TeX-files to plain text, \eg to