about summary refs log tree commit diff homepage
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-10-13 18:03:08 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-10-13 18:03:08 +0900
commit4e036ed653e4f5ae35b172afc23860c425ea1a0d (patch)
tree6a8eec3e64c8e4185ae46422bfb94a91da02d282 /Makefile
parent2189f8ae2f9849b7e473cfd76952908a01d359a7 (diff)
downloadsite-4e036ed653e4f5ae35b172afc23860c425ea1a0d.tar.gz
Use XSLT for gemtext
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d865ae7..ae906eb 100644
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,15 @@ all: gemini www
 %/:
 	mkdir $@
 
-gemini/%.gmi: %.md
-	md2gemini --links=paragraph < $< > $@
+gemini/%.gmi: www/%.xhtml gemini/
+	xsltproc gmi.xslt $< > $@
 
-gemini: gemini/ $(GMI)
+gemini: $(GMI)
 
-www/%.xhtml: %.md
+www/%.xhtml: %.md www/
 	makepage < $< | xsltproc xhtml.xslt - > $@
 
-www: www/ $(XHTML)
+www: $(XHTML)
 
 clean:
 	rm -f $(GMI) $(XHTML)