-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (36 loc) · 995 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all
all: help
# CONFIGS := doom fonts git mr tmux zsh ideavim bin
CONFIGS := config emacs.d mr bin lein stardict gpg wakatime authinfo ssh npm fly
.PHONY: install
install: ## Install the dotfiles by stow.
mkdir -p $(HOME)/.local/share
for config in $(CONFIGS); do \
stow -d $(CURDIR) -t $(HOME) $$config; \
done
.PHONY: update
update: pull install ## Git pull and install all.
.PHONY: pull
pull: ## Git pull.
git pull
.PHONY: dedot
dedot: ## Decrypt dotfiles.
~/bin/dots dedot
.PHONY: endot
endot: ## Encrypt dotfiles.
~/bin/dots endot
.PHONY: rime
rime: ## Sync rime.
~/bin/dots rime
.PHONY: startSyncthing
startSyncthing: ## Start syncthing docker.
~/bin/dots startSyncthing
.PHONY: killSyncthing
killSyncthing: ## Stop syncthing docker.
~/bin/dots killSyncthing
.PHONY: help
help: ## Show help.
@echo 'Targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2}'