about summary refs log tree commit diff stats
path: root/doc/Makefile
diff options
context:
space:
mode:
authorDarren Bane <darren.bane@gmail.com>2020-10-22 18:40:34 +0100
committerDarren Bane <darren.bane@gmail.com>2020-10-22 18:40:34 +0100
commit8648f2b83bb63108c5db2e2d6bc73bc1018f5304 (patch)
tree0645890725a687235a8a316dca3b1cf9f08d8c5e /doc/Makefile
parent36a8373ce5198bd7887b29774d5a5b0052902d27 (diff)
downloadlsp-8648f2b83bb63108c5db2e2d6bc73bc1018f5304.tar.gz
Tweak Gemini workflow
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 6a2159f..7e21ba4 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,6 +1,8 @@
 .POSIX:
 .DELETE_ON_ERROR:
 
+GEMINI := breaking_rules.gmi bane.20.cdr15.gmi
+
 .PHONY: all
 all: breaking_rules.pdf breaking_rules.html breaking_rules.txt bane.20.cdr15.html lkbib.txt
 
@@ -22,7 +24,10 @@ breaking_rules.txt: macros.ms breaking_rules.md refs.i
 # or piping through ul worked.
 # GROFF_NO_SGR=1 groff -Tutf8 -R -ms -k -Kutf8 -c macros.ms lkbib.ms | ul > $@
 lkbib.txt: macros.ms lkbib.ms refs.i
-	groff -Tlatin1 -R -ms -k -Kutf8 macros.ms lkbib.ms > $@
+	groff -Tutf8 -R -ms -k -Kutf8 macros.ms lkbib.ms > $@
+
+%.gmi: %.md
+	md2gemini $^ > $@
 
 refs.i: refs
 	indxbib $^
@@ -30,3 +35,7 @@ refs.i: refs
 .PHONY: clean
 clean:
 	$(RM) breaking_rules.pdf breaking_rules.html breaking_rules.txt bane.20.cdr15.html
+
+.PHONY: push
+push: $(GEMINI)
+	scp $^ dbane@republic.circumlunar.space:/usr/home/dbane/gemini/lsp_doc