-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (28 loc) · 904 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
ROOT_PATH := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
CANDIDATES := $(wildcard .??*)
EXCLUSIONS := .git .gitignore
DOTFILES := $(filter-out $(EXCLUSIONS), $(CANDIDATES))
list:
@echo '==> Show Target dotfiles.'
@$(foreach val, $(DOTFILES), /bin/ls -dF $(val);)
@echo ''
@echo '==> Show Exclusions dotfiles.'
@$(foreach val, $(EXCLUSIONS), /bin/ls -dF $(val);)
deploy:
@echo '==> Start to deploy dotfiles to home directory.'
@echo ''
@$(foreach val, $(DOTFILES), ln -sfnv $(abspath $(val)) $(HOME)/$(val);)
@echo ''
@echo '==> End to deploy dotfiles to home directory.'
install:
@echo '==> Start to Initialize'
@echo ''
@DOTPATH=$(ROOT_PATH) bash $(ROOT_PATH)/etc/install.sh
@echo ''
@echo '==> End to Initialize'
update:
@echo '==> Start to Update tools'
@echo ''
@DOTPATH=$(ROOT_PATH) bash $(ROOT_PATH)/etc/update.sh
@echo ''
@echo '==> End to Update tools'