aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-03-29 15:28:51 -0500
committerToby Vincent <tobyv13@gmail.com>2022-03-29 15:28:51 -0500
commitc3cfb415f86c48488a41e9ac44b2ca9c4cc5825b (patch)
tree4682525a7d8226fe8ebcb4ba157b59442f3010d9 /makefile
parent0360f381b3bdd38da4902b4b631a6122185e277c (diff)
fix: fix stow issues with tmux
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index b2b22b4..b45f1ba 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,12 @@
VPATH = $(PATH)
+
+ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
ZSH_COMP_DIR := $(HOME)/.local/share/zsh/site-functions
BASH_COMP_DIR := $(HOME)/.local/share/bash-completion/completions
+
ARCH := $(shell uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/ | sed s/armv7l/armv6/)
+
.PHONY: interactive stow unstow clean gpg wsl
$(ZSH_COMP_DIR):
@@ -19,10 +23,10 @@ interactive: fzf rg # Interactive target runner
--preview-window '80%,border-bottom,+{2}+3/3,~3'
stow: # Install configuration files
- stow --target=$(HOME) */
+ stow */
unstow: # Uninstall configuration files
- stow --target=$(HOME) --delete */
+ stow --delete */
clean: # Remove all broken symbolic links from $HOME (recursivly)
find $(HOME) -type l -exec sh -c 'for x; do [ -e "$$x" ] || rm -v "$$x"; done' _ {} +