From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .../plugins/zsh-navigation-tools/Makefile | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/zsh-navigation-tools/Makefile (limited to '.config/zsh/oh-my-zsh/plugins/zsh-navigation-tools/Makefile') diff --git a/.config/zsh/oh-my-zsh/plugins/zsh-navigation-tools/Makefile b/.config/zsh/oh-my-zsh/plugins/zsh-navigation-tools/Makefile new file mode 100644 index 0000000..f34af0c --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/zsh-navigation-tools/Makefile @@ -0,0 +1,35 @@ +NAME=zsh-navigation-tools + +INSTALL?=install -c +PREFIX?=/usr/local +SHARE_DIR?=$(DESTDIR)$(PREFIX)/share/$(NAME) +DOC_DIR?=$(DESTDIR)$(PREFIX)/share/doc/$(NAME) + +all: + +install: + $(INSTALL) -d $(SHARE_DIR) + $(INSTALL) -d $(SHARE_DIR)/.config + $(INSTALL) -d $(SHARE_DIR)/.config/znt + $(INSTALL) -d $(DOC_DIR) + cp zsh-navigation-tools.plugin.zsh _n-kill doc/znt-tmux.zsh $(SHARE_DIR) + cp README.md NEWS LICENSE doc/img/n-history2.png $(DOC_DIR) + if [ x"true" = x"`git rev-parse --is-inside-work-tree 2>/dev/null`" ]; then \ + git rev-parse HEAD; \ + else \ + cat .revision-hash; \ + fi > $(SHARE_DIR)/.revision-hash + : + for fname in n-*; do cp "$$fname" $(SHARE_DIR); done; \ + for fname in znt-*; do cp "$$fname" $(SHARE_DIR); done; \ + for fname in .config/znt/n-*; do cp "$$fname" $(SHARE_DIR)/.config/znt; done; + +uninstall: + rm -f $(SHARE_DIR)/.revision-hash $(SHARE_DIR)/_* $(SHARE_DIR)/zsh-* $(SHARE_DIR)/n-* $(SHARE_DIR)/znt-* $(SHARE_DIR)/.config/znt/n-* + [ -d $(SHARE_DIR)/.config/znt ] && rmdir $(SHARE_DIR)/.config/znt || true + [ -d $(SHARE_DIR)/.config ] && rmdir $(SHARE_DIR)/.config || true + [ -d $(SHARE_DIR) ] && rmdir $(SHARE_DIR) || true + rm -f $(DOC_DIR)/README.md $(DOC_DIR)/LICENSE $(DOC_DIR)/n-history2.png + [ -d $(DOC_DIR) ] && rmdir $(DOC_DIR) || true + +.PHONY: all install uninstall -- cgit v1.2.3-59-g8ed1b