summary refs log tree commit diff
path: root/doc/rfc/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-21 17:59:16 -0500
committerJune McEnroe <june@causal.agency>2020-12-21 17:59:16 -0500
commit6eabe3212a481dd8fc272fc68bc38c0c61949c63 (patch)
tree6b444f1c01cecdef9f70a685bbabb25c14d45d75 /doc/rfc/Makefile
parentMove rfc to doc/rfc (diff)
downloadsrc-6eabe3212a481dd8fc272fc68bc38c0c61949c63.tar.gz
src-6eabe3212a481dd8fc272fc68bc38c0c61949c63.zip
Move rfc.vim to doc/rfc
That default path is a bit wonky, but it prevents having to template
rfc.vim for basically no reason.
Diffstat (limited to 'doc/rfc/Makefile')
-rw-r--r--doc/rfc/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/rfc/Makefile b/doc/rfc/Makefile
index a629782d..87462a6c 100644
--- a/doc/rfc/Makefile
+++ b/doc/rfc/Makefile
@@ -1,3 +1,5 @@
+PREFIX ?= ~/.local
+
 MODULE = ftp.rfc-editor.org::rfcs-text-only
 
 tags: rfctags.pl rfc-index.txt.gz
@@ -9,3 +11,11 @@ rfc-index.txt.gz:
 
 clean:
 	rm -f tags *.txt *.txt.gz
+
+install: tags rfc.vim
+	install -d ${PREFIX}/share/rfc ${PREFIX}/share/nvim/site/plugin
+	ln -f tags *.txt.gz ${PREFIX}/share/rfc
+	install -m 644 rfc.vim ${PREFIX}/share/nvim/site/plugin
+
+uninstall:
+	rm -fr ${PREFIX}/share/rfc ${PREFIX}/share/nvim/site/plugin/rfc.vim