-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMakefile
34 lines (27 loc) · 736 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
.PHONY := setup install update purge
.DEFAULT_GOAL := setup
DOT_SCRIPTS = ./scripts/.dotscripts
STOW = $(shell command -v stow 2> /dev/null)
check_stow:
ifndef STOW
$(error No 'stow' in $$PATH, consider installing GNU stow from https://github.com/aspiers/stow)
endif
setup: check_stow
@echo "~>> [[ DOTFILES ]] <<~"
@echo
@bash -c $(DOT_SCRIPTS)/setup
@bash -c $(DOT_SCRIPTS)/install
@bash -c $(DOT_SCRIPTS)/post_setup
install: check_stow
@echo "~>> [[ Installing ]] <<~"
@echo
@bash -c $(DOT_SCRIPTS)/install
update: check_stow
@echo "~>> [[ Updating ]] <<~"
@echo
@bash -c $(DOT_SCRIPTS)/update
@bash -c $(DOT_SCRIPTS)/install
purge: check_stow
@echo "~>> [[ Purging ]] <<~"
@echo
@bash -c $(DOT_SCRIPTS)/purge