summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-06-14 10:40:36 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-06-14 10:40:36 -0300
commitda9ab628e308bc2c78551d68b782526cd2bf6797 (patch)
tree111700638cfb844f1eb0c307734b656c6c6d3b7d /Makefile
parent160bd49d26e2ddda4b227ed672742ffc019f4d3d (diff)
parentbad609c6ba794835f6694f9fdf889742e92785dd (diff)
Merge branch 'scanlines-and-bundling'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6371769..2aa5555 100644
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,10 @@ RSS = blog/index.rss
URL ?= http://localhost:8000
-all: $(PAGES) blog/index.rss
+all: $(PAGES) blog/index.rss static/style.css
clean:
- rm -f $(PAGES) $(RSS) dist.tar.gz
+ rm -f $(PAGES) $(RSS) dist.tar.gz static/style.css
dist: all
tar -cv static $(RSS) $(PAGES) | gzip > dist.tar.gz
@@ -30,6 +30,9 @@ blog/index.rss: blog/posts.csv
blog/index.html: blog/posts.csv templates/base.m4
m4 -DPAGECONTENT="$$(./csv2index.sh /blog < $<)" 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 --bundle --minify --outfile=static/style.css
+
%.html: %.md templates/base.m4
m4 -DPAGECONTENT="$$(./genpage.sh < $<)" templates/base.m4 > $@