-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 797 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 797 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
CONFIG = _make/default-pkgs.mk
PKGS != cat $(CONFIG)
STOW != command -v stow 2> /dev/null
# TODO: Wildcard this like GNUmake
.include "_include/vim.mk"
$(HOME)/bin:
mkdir -p ${HOME}/bin
$(HOME)/.config:
mkdir -p ${HOME}/.config
stow: $(HOME)/bin $(HOME)/.config
.for pkg in $(PKGS)
$(STOW) -R $(pkg)
.endfor
unstow:
.for pkg in $(PKGS)
$(STOW) -D $(pkg)
.endfor
submodules:
git submodule update --init
test-md:
test $$(find . -type f -iname '*.md' \! \( -path './docs/*' \) -d 2 | wc -c) -eq 0; \
echo "Docs Look good!"
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