about summary refs log blame commit diff stats
path: root/doc/Makefile
blob: 241ce6fe07dc20a690f46532f572d6f92b13ad52 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                 

                                           
                                                                
 
           

                                          
 

                     
 


                                                                              

                                                   

           


                                                           
 


                  

             
                                 


               
                                                                                 
.POSIX:
.DELETE_ON_ERROR:

# Outputs other than Gemini aren't required

GEMINI := breaking_rules.gmi bane.20.cdr15.gmi bane.21.cdr16.gmi

.PHONY: all
all: $(GEMINI)
# lkbib.txt can be made manually as needed

# Write gfm.
# Beyond that, YAGNI.

# None of setting GROFF_NO_SGR, using the "-c" option,
# or piping through ul worked.
# GROFF_NO_SGR=1 groff -Tutf8 -R -ms -k -Kutf8 -c macros.ms lkbib.ms | ul > $@
lkbib.txt: lkbib.ms refs.i
	groff -Tutf8 -R -ms -k -Kutf8 lkbib.ms > $@

%.gmi: %.md
	md2gemini -m -l copy --code-tag lisp $^ > $@
	# lowdown -s -Tgemini $^ > $@
	# Lowdown isn't mature enough yet, no table support

refs.i: refs
	indxbib $^

.PHONY: clean
clean:
	$(RM) $(GEMINI) lkbib.txt

.PHONY: push
push: $(GEMINI)
	scp -6 $^ dbane@republic.circumlunar.space:/usr/home/dbane/gemini/lsp_doc