summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2020-02-21 03:33:53 +0100
committerache <ache@ache.one>2020-02-21 03:33:53 +0100
commitf68704c31424f23cb2fdf767518b93eb3b18f552 (patch)
tree7699dbb9a57dcd8d7993ce559c1d957f4d2bbb23
parentTwitter -> Mastodon (diff)
Improve makefile usability
-rw-r--r--makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/makefile b/makefile
index 1a30a16..451e98f 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,5 @@
-MD_CMD=remark --rc-path remarkrc
+MD_CMD=npx remark --rc-path remarkrc
CATCH_CMD=pup
HTML_MINIFIER_CMD=htmlmin
BASE_HTML=tmp/left.htm tmp/headers.htm
@@ -36,9 +36,9 @@ articles/%.html: articles/%.md $(BASE_HTML)
articles/tmp/%_intro.html: articles/%.html
@echo "> Création des introductions d'articles"
mkdir -p articles/tmp
- cat $< | $(CATCH_CMD) "h1" > $(@:.html=.htm)
- cat $< | $(CATCH_CMD) "h1 + p" | sed 's/res\//articles\/res\//' >> $(@:.html=.htm)
- cat $< | $(CATCH_CMD) "h1 + p + p" >> $(@:.html=.htm)
+ @cat $< | $(CATCH_CMD) "h1" > $(@:.html=.htm)
+ @cat $< | $(CATCH_CMD) "h1 + p" | sed 's/res\//articles\/res\//' >> $(@:.html=.htm)
+ @cat $< | $(CATCH_CMD) "h1 + p + p" >> $(@:.html=.htm)
m4 -D tmpFileNameArticle=$(@:.html=.htm) -D linkFileNameArticle=$(<:.html=) articles/intro.m4 > $@