diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -1,6 +1,23 @@ +PREFIX = /usr/local +TARGET := $(HOME) +SCRIPTS := $(shell cd scripts && ls) + +default: + @echo "Current configuration:" + @echo " PREFIX: $(PREFIX)" + @echo " TARGET: $(TARGET)" + install: - stow . --target $(HOME) - git clone https://github.com/tmux-plugins/tpm $(HOME)/.tmux/plugins/tpm + stow . --target $(TARGET) + [ -d $(HOME)/.tmux/plugins/tpm ] || git clone https://github.com/tmux-plugins/tpm $(HOME)/.tmux/plugins/tpm + +install-scripts: + cd scripts && cp $(SCRIPTS) $(PREFIX)/bin/ uninstall: - stow -D . --target $(HOME) + stow -D . --target $(TARGET) + +uninstall-scripts: + cd $(PREFIX)/bin && rm -f $(SCRIPTS) + +.PHONY: default install install-scripts uninstall uninstall-scripts |
