aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-30 00:17:28 -0400
committerBenjamin Linskey2026-05-30 00:19:24 -0400
commit7302e6fe0a08e11becae672877e50567c11a069f (patch)
tree7fa86f7c173100b35938ad4cd0401adb74d4bf50
parentdec0a812f918750b068728693fced3200080a6f9 (diff)
downloaddotfiles-7302e6fe0a08e11becae672877e50567c11a069f.tar.gz

Add “clean” and “uninstall” makefile targets

-rw-r--r--Makefile8
-rw-r--r--README.md11
-rwxr-xr-xuninstall.sh8
3 files changed, 23 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b1834b7..02b582c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,3 +9,11 @@ install:
.PHONY: win
win:
@extra/win/install.sh
+
+.PHONY: uninstall
+uninstall:
+ ./uninstall.sh
+
+.PHONY: clean
+clean: uninstall
+ rm -rf vim-plugins
diff --git a/README.md b/README.md
index 7280688..57bba5c 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,10 @@
dotfiles
========
-- Run "make" to symlink dotfiles into place.
-- Run "make win" to perform Windows-specific setup.
-- extras/mac contains a Mac Terminal.app profile file that must be manually
- installed.
+- `make` installs standard configuration files.
+- `make win` performs Windows-specific setup.
+- `make uninstall` removes symlinks in home directory.
+- `make clean` removes symlinks and deletes Vim plugin repositories.
+
+`extras/mac` contains a Mac Terminal.app profile that must be manually
+installed.
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100755
index 0000000..f115f06
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+find "$PWD" -maxdepth 1 \
+ -name '.*' \
+ -not -name .git \
+ -not -name .DS_Store \
+ -not -name .gitignore \
+ -exec sh -c 'rm $HOME/$(basename "$1")' sh {} \;