-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 927 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 927 Bytes
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
#. Dotfile Manager -={
#. INSTRUCTIONS -={
#. TBD
#. }=-
all: personal
#. Internal vars
STOW := stowsh/stowsh
default_packages := zsh tmux spacemacs editorconfig tmux-plugins zplug doomemacs dotvim ohmyzsh goldendict resources
personal_packages := $(default_packages) git gpg ohmyvocabulary
personal_ubuntu_packages := $(default_packages) git gpg-ubuntu ohmyvocabulary-ubuntu
work_packages := $(default_packages) git-work netrc ohmyvocabulary
# Autocompletion
personal: install-personal
work: install-work
# Dynamic install/uninstall -= {
install-%:
@echo "Installing profile: $*"
${STOW} -vv -t ~ ${$*_packages}
uninstall-%:
@echo "Uninstalling profile: $*"
${STOW} -vv -D -t ~ ${$*_packages}
#. }=-
list:
find ~ -name ".*" -maxdepth 1 -ls | column -t
link-list:
find ~ -maxdepth 1 -type l -ls | column -t
llist: link-list
clean:
find . -name "*~" -o -name "*.swp" -o -name "*.swo" | xargs rm -rf
#. }=-