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 6371769..10d5f86 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 --external:'/static/*' --bundle --minify --outfile=static/style.css
+
%.html: %.md templates/base.m4
m4 -DPAGECONTENT="$$(./genpage.sh < $<)" templates/base.m4 > $@