about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0d658d4..d40c117 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,16 @@ build: $(PREFIX)/index.html
 $(PREFIX)/index.html: config.toml $(md_files)
 	zola build --force --output-dir $(PREFIX)
 
+$(PREFIX)/feed-styles.xsl: $(PREFIX)/index.html
+	mv $(PREFIX)/feed-styles/index.html $@
+	rm -fr $(PREFIX)/feed-styles
+
+postprocess: $(PREFIX)/feed-styles.xsl
+	touch .postprocessstamp
+
 format: .formatstamp
 
-.formatstamp: $(PREFIX)/index.html
+.formatstamp: $(PREFIX)/index.html .postprocessstamp
 	@echo "Formatting HTML..."
 	@prettier --write --parser html --print-width 200 "$(PREFIX)/**/*.html" > /dev/null
 	@touch .formatstamp