summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fe22e38..791a88b 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,10 @@ tutoriais/index.html: tutoriais/posts.csv templates/base.m4
static/style.css: src/css/style.css src/css/style.css src/css/base.css src/css/navbar.css src/css/scanlines.css
esbuild src/css/style.css --external:'/static/*' --bundle --minify --outfile=static/style.css
-%.html: %.md templates/base.m4
- m4 -DPAGECONTENT="$$(./genpage.sh < $<)" templates/base.m4 > $@
+%.html: %.html.m4 templates/base.m4
+ m4 $< > $@
+
+%.html.m4: %.md
+ ./genpage.sh < $< > $@
.PHONY: all clean dist