-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGNUmakefile
More file actions
35 lines (24 loc) · 727 Bytes
/
GNUmakefile
File metadata and controls
35 lines (24 loc) · 727 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
CONFIG = _make/default-pkgs.mk
PKGS := $(shell cat $(CONFIG))
STOW := $(shell command -v stow 2> /dev/null)
include _include/*.mk
$(HOME)/bin:
mkdir -p ${HOME}/bin
$(HOME)/.config:
mkdir -p ${HOME}/.config
stow: $(HOME)/bin $(HOME)/.config
$(foreach pkg, $(PKGS), $(STOW) -R $(pkg);)
unstow:
$(foreach pkg, $(PKGS), $(STOW) -D $(pkg);)
submodules:
git submodule update --init
test-md:
find . -mindepth 2 -type f -iname '*.md' \! \( -path './docs/*' \)
test: test-md
# Install the plugins defined in .vimrc
vim-plug:
vim -T dumb -c ":PlugInstall" -c ":q" -c ":q"
# Assumes plug entries have been removed from .vimrc
vim-plug-clean:
vim -T dumb -c ":PlugClean!" -c ":q" -c ":q"
world: submodules stow vim-plug