Makefile: add a userconfig target

make userconfig takes care of creating $XDG_CONFIG_HOME/kak/autoload
and populate it with links to files in the rc directory
This commit is contained in:
Maxime Coste 2012-12-11 13:45:04 +01:00
parent 92c4a9abce
commit 969a1213c4

View File

@ -19,4 +19,10 @@ tags:
clean: clean:
rm -f *.o .*.d kak tags rm -f *.o .*.d kak tags
.PHONY: tags XDG_CONFIG_HOME ?= $(HOME)/.config
userconfig:
mkdir -p $(XDG_CONFIG_HOME)/kak/autoload
ln -rs rc/{asciidoc,cpp,diff,git,grep,kakrc,make}.kak $(XDG_CONFIG_HOME)/kak/autoload/
.PHONY: tags userconfig