aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-26 22:23:42 -0400
committerBenjamin Linskey2026-05-26 22:23:42 -0400
commit6e531c85516de15c6dd4f3d38ab921fc3d5ac727 (patch)
tree65391e0faf7b6000c0c8216289d190d6cae938ba
parentf670c9064ad1e912613c0705e449928c8141ce75 (diff)
downloaddotfiles-6e531c85516de15c6dd4f3d38ab921fc3d5ac727.tar.gz

Move makefile commands to a separate script

-rw-r--r--Makefile8
-rwxr-xr-xinstall.sh12
2 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2df22d9..1dc6527 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,7 @@
.PHONY: install
install:
- rm -f "$$HOME"/.bash_profile
- find "$$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \
- -not -name .gitignore -exec ln -sf {} "$$HOME" \;
- if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.profile "$$HOME"/.bash_profile; fi
- if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.shrc "$$HOME"/.bashrc; fi
- # Regenerate Vim help tags.
- if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi
+ ./install.sh
.PHONY: win
win:
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..31b1d10
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+rm -f "$HOME"/.bash_profile
+
+find "$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \
+ -not -name .gitignore -exec ln -sf {} "$HOME" \;
+
+if [ "$(uname)" = Linux ]; then ln -sf "$HOME"/.profile "$HOME"/.bash_profile; fi
+if [ "$(uname)" = Linux ]; then ln -sf "$HOME"/.shrc "$HOME"/.bashrc; fi
+
+# Regenerate Vim help tags.
+if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi