summary refs log tree commit diff
path: root/doc/rfc/Makefile
blob: 3078dcd321e923edfd0996896ecdab06f941f052 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PREFIX ?= ~/.local
MANDIR ?= ${PREFIX}/share/man

MODULE = ftp.rfc-editor.org::rfcs
RFCS = ${MODULE}/rfc-index.txt ${MODULE}/'rfc[1-9]*.txt' ${MODULE}/'rfc*.json'

all: rfc rfctags

.SUFFIXES: .in .pl

.in:
	sed 's|%%PREFIX%%|${PREFIX}|g' $< > $@
	chmod a+x $@

.pl:
	cp -f $< $@
	chmod a+x $@

clean:
	rm -f rfc rfctags

install: rfc rfctags rfc.1
	install -d ${PREFIX}/bin ${MANDIR}/man1
	install rfc rfctags ${PREFIX}/bin
	install -m 644 rfc.1 ${MANDIR}/man1
	ln -fs rfc.1 ${MANDIR}/man1/rfctags.1

sync:
	install -d ${PREFIX}/share
	rsync -ptz ${RFCS} ${PREFIX}/share/rfc

compress:
	find ${PREFIX}/share/rfc -name '*.txt' | xargs gzip -9f

uninstall:
	rm -f ${PREFIX}/bin/rfc ${PREFIX}/bin/rfctags
	rm -f ${MANDIR}/man1/rfc.1 ${MANDIR}/man1/rfctags.1
	rm -fr ${PREFIX}/share/rfc
n/man1/hi.1?id=686ce24e9a67b42765ff5638e1d747c8ea82343d&follow=1'>Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe