about summary refs log tree commit diff stats
path: root/subx.gedit
Commit message (Expand)AuthorAgeFilesLines
* 5841 - rudimentary syntax highlighting for geditKartik Agaram2019-12-281-0/+29
rtik Agaram <vc@akkartik.com> 2018-06-06 09:02:40 -0700 committer Kartik Agaram <vc@akkartik.com> 2018-06-06 09:27:44 -0700 4253 - support running just a single C test' href='/akkartik/mu/commit/build_and_test_until?h=hlt&id=53172ce13ab2add6c0000ee11c32e874df67b86e'>531
.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

# Stick with gfm for as long as possible.
# Use stuff beyond that only where absolutely necessary.
# Similar to code, YAGNI.

breaking_rules.pdf: macros.ms breaking_rules.md refs.i
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | pdfroff -i -t -R -mspdf -k -Kutf8 > $@

# On macOS only, headers aren't emitted currently
%.html: macros.ms %.md refs.i
	( cat macros.ms; lowdown -sTms $(filter %.md,$^) ) | groff -Txhtml -i -t -R -ms -k -Kutf8 > $@

breaking_rules.txt: macros.ms breaking_rules.md refs.i
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | env GROFF_NO_SGR=t groff -Tlatin1 -i -t -R -ms -k -Kutf8 -c | ul > $@

# 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: macros.ms lkbib.ms refs.i
	groff -Tutf8 -R -ms -k -Kutf8 macros.ms lkbib.ms > $@

%.gmi: %.md
	md2gemini -m $^ > $@

refs.i: refs
	indxbib $^

.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