this repo has no description
1TARGETS ?= vim
2
3all: nix $(TARGETS)
4
5nix:
6 @printf "%s\t" $@
7 @printf "\033[32m✓" || printf "\033[31m✗"
8 @printf "\033[m\n"
9 @nix run '.'
10
11$(TARGETS): check
12 @printf "%s\t" $@
13 @stow -t "${HOME}" -R "$@" 2> /dev/null && printf "\033[32m✓" || printf "\033[31m✗"
14 @printf "\033[m\n"
15
16check:
17 @if ! which stow 2>/dev/null >/dev/null; \
18 then printf "\033[31mGNU Stow not found\033[m\n"; \
19 exit 1; fi
20
21.PHONY: $(TARGETS) nix all