-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 839 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
CHEZMOI_DIR = ~/.local/bin
CHEZMOI = $(CHEZMOI_DIR)/chezmoi
################################################################################
# Main targets
################################################################################
# Run first-time setup
.PHONY: install
install: install_chezmoi init apply
# Fetch and apply changes in the remote repository
.PHONY: update
update:
$(CHEZMOI) update
################################################################################
# Sub targets
################################################################################
# Install chezmoi https://www.chezmoi.io/install/#one-line-package-install
.PHONY: install_chezmoi
install_chezmoi:
sh -c "$$(curl -fsLS get.chezmoi.io)" -- -b $(CHEZMOI_DIR)
.PHONY: init
init:
$(CHEZMOI) init .
.PHONY: apply
apply:
$(CHEZMOI) apply