From 17f2d30b5fda09f0c27898a81a5c4b92a5a8b53f Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 17 Aug 2017 05:26:14 +0200 Subject: Quick fix of m4 file intro makefile --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index b9e9794..49043e2 100644 --- a/makefile +++ b/makefile @@ -20,13 +20,13 @@ bin/introFilter: src/introFilter.hs src/Id.hs article/%.html: article/%.md bin/articleFilter $(BASE_HTML) pandoc --filter bin/articleFilter $< > ${@:.html=.htm} - cat ${@:.html=.htm} | m4 > $@ + m4 -D tmpFileNameArticle=${@:.html=.htm} -D linkFileNameArticle=${<:.md=.html} article/article.m4 > $@ NUMBERS = 1 2 3 4 article/%_intro.html: article/%.md bin/introFilter pandoc --filter bin/introFilter $< > ${@:.html=.htm} - cat ${@:.html=.htm} | m4 -D linkFileNameArticle=${<:.md=.html} > $@ + m4 -D tmpFileNameArticle=${@:.html=.htm} -D linkFileNameArticle=${<:.md=.html} article/intro.m4 > $@ articles.htm: $(ALL_ARTICLES_INTRO_OUT) bin/introFilter cat $(ALL_ARTICLES_INTRO_OUT) > $@ -- cgit v1.2.3-54-g00ecf