aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-29 01:45:07 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-12-29 14:50:02 +0100
commitbf7347380207d80183ce80ae6547ef08fa579c6a (patch)
treeec64896997e4bd76d89738f0b156dde7423ff107 /Makefile
parentfeat: initial commit (diff)
downloaddotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz
feat: add scripts, TARGET variable for Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 20 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e3d55ad..7beddbf 100644
--- a/Makefile
+++ b/Makefile
@@ -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