summaryrefslogtreecommitdiff
path: root/Makefile
blob: 898fe9e4e09888cdde94084e72332ab4a0ba9be5 (plain)
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
44
45
46
VIM := $(shell command -v vim 2>/dev/null)
NVIM := $(shell command -v nvim 2>/dev/null)
ZCONFS := zsh/zshenv zsh/zshrc
SCONFS := sh/profile
DCONFS := doas.conf

all:

install: install-zshconfigs install-shconfigs vimplug-vim vimplug-nvim

install-zshconfigs: $(ZCONFS)
	@echo "Installing zsh conf files..."
	@echo ".zshenv..."
	@ln -sf `pwd`/zsh/zshenv ~/.zshenv
	@echo ".zshrc..."
	@ln -sf `pwd`/zsh/zshrc ~/.zshrc
	@echo "Done."

install-shconfigs: $(SCONFS)
	@echo "Installing sh conf files..."
	@echo ".profile..."
	@ln -sf `pwd`/sh/profile ~/.profile

vimplug-vim: installers/vimplug_vim.sh
ifdef VIM
	@echo "Installing vim-plug for vim..."
	@$(shell installers/vimplug_vim.sh)
	@echo "Done."
else
	@echo "vim not installed."
endif

vimplug-nvim: installers/vimplug_nvim.sh
ifdef NVIM
	@echo "Installing vim-plug for nvim..."
	@$(shell installers/vimplug_nvim.sh)
	@echo "Done."
else
	@echo "nvim not installed."
endif

doas-conf: $(DCONFS)
	@echo "Installing doas config files..."
	@echo "doas.conf..."
	@sudo cp -n doas.conf /etc/doas.conf
	@echo "Done."