diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:45:07 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-29 14:50:02 +0100 |
| commit | bf7347380207d80183ce80ae6547ef08fa579c6a (patch) | |
| tree | ec64896997e4bd76d89738f0b156dde7423ff107 /Makefile | |
| parent | feat: initial commit (diff) | |
| download | dotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz | |
feat: add scripts, TARGET variable for Makefile
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 |
