diff options
| author | Sergii Tykhomyrov <sergii@tykhomyrov.net> | 2026-08-03 21:25:51 +0200 |
|---|---|---|
| committer | Sergii Tykhomyrov <sergii@tykhomyrov.net> | 2026-08-03 21:25:51 +0200 |
| commit | f05d119985702138c23a7b3e0fc47f6ebcfa8eab (patch) | |
| tree | 06eb48da1f18d53ab8afcc6542a206bd6388a74a /Makefile | |
| parent | 492ea6ba65acc9989474b8f3513c8c7e0d881a71 (diff) | |
| parent | 995e88c574ac01243327d53e2a1936301bc02f8e (diff) | |
| download | dotfiles-f05d119985702138c23a7b3e0fc47f6ebcfa8eab.tar.gz dotfiles-f05d119985702138c23a7b3e0fc47f6ebcfa8eab.zip | |
Merge existing dotfiles repo
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYrzpJevCUUqP6pFyJHmB4
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f829b0 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +SHELL := /bin/zsh +STOW := stow +STOW_FLAGS := --dotfiles --target=$(HOME) + +PACKAGES := $(dir $(wildcard */)) + +.PHONY: all install uninstall list clean help + +all: install + +install: + @for package in $(PACKAGES); do \ + echo "Installing $$package..."; \ + $(STOW) $(STOW_FLAGS) $$package; \ + done + +uninstall: + @for package in $(PACKAGES); do \ + echo "Uninstalling $$package..."; \ + $(STOW) -D $(STOW_FLAGS) $$package; \ + done + +list: + @echo "Available packages:" + @for package in $(PACKAGES); do \ + echo " - $$package"; \ + done + +clean: + @for package in $(PACKAGES); do \ + $(STOW) -D $(STOW_FLAGS) $$package 2>/dev/null || true; \ + done |
