From 969a1213c4a3ac16da95bf93b52004268c42d98c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Dec 2012 13:45:04 +0100 Subject: [PATCH] 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 --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index a0d86379..753847fc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -19,4 +19,10 @@ tags: clean: 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