aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2022-03-17 10:48:00 -0700
committerRaul Benencia <rul@kalgan.cc>2022-03-17 10:48:00 -0700
commite54ae2c6ed710cd8e0f5504c1e60ad43ac36f1b2 (patch)
treeb2de3bd5a6f70ba219f6670f36295313fbcb6437 /Makefile
parente37a5ec580ae069521c50a25a2048cf7c0e69d0d (diff)
Revert "switch to stow"
This reverts commit deab59cccf1f79f68e5e1ef11f39da9e29dfb45f.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7e00cd4..c3acfee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,10 @@
+mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
+cur_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
+
+repo_dir := $(dir $(mkfile_path))
+bin_dir := $(repo_dir)bin
+bin_file_name := 10-$(cur_dir)
+
all:
- # Combine files with public dotfiles
- stow --verbose --no-folding --target=$$HOME .
+ $(bin_dir)/pycombine -e '(Makefile|bin|README.md|debian)' "$(HOME)" "$(repo_dir)"
+ echo 'PATH=$(bin_dir):$$PATH' > ~/.environment.d/$(bin_file_name)
nihil fit ex nihilo