about summary refs log tree commit diff stats
path: root/doc/Makefile
diff options
context:
space:
mode:
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