summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2024-02-01 21:26:40 -0500
committerMatt Turner <mattst88@gmail.com>2024-02-01 21:26:40 -0500
commit63337cc27b7945c09711167889749b3250f4950b (patch)
treecd2014807499e658ff9a087b4453cec0f6264740
parent9851514c1e5b5946549cca3704be31183ae42589 (diff)
Add Makefile
From https://github.com/nbeaver/stow-makefile
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e4bb7af
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+stow_dirs = $(wildcard */)
+.PHONY : stow
+stow :
+ stow --target $(HOME) --verbose $(stow_dirs)
+
+.PHONY : stow-verbose
+# verbosity goes from 0 to 4
+VERBOSITY=1
+stow-verbose :
+ stow --verbose $(VERBOSITY) --target $(HOME) --verbose $(stow_dirs)
+
+.PHONY : dry-run
+dry-run :
+ stow --no --target $(HOME) --verbose $(stow_dirs)
+
+.PHONY : restow
+restow :
+ stow --target $(HOME) --verbose --restow $(stow_dirs)
+
+# Do this *before* moving to another directory.
+.PHONY : delete
+delete :
+ stow --target $(HOME) --verbose --delete $(stow_dirs)