41 lines
621 B
Makefile
41 lines
621 B
Makefile
##
|
|
# dotfiles installer
|
|
#
|
|
# @file
|
|
# @version 0.1
|
|
|
|
all: $(CFG_DIR)
|
|
|
|
LN=ln -sf
|
|
PWD=$(realpath .)
|
|
|
|
CFG_DIR:=~/.config
|
|
|
|
define link
|
|
ln -sf $(PWD)/$* $(CFG_DIR)
|
|
endef
|
|
|
|
%-install: $(CFG_DIR)
|
|
$(link)
|
|
|
|
$(CFG_DIR):
|
|
mkdir -p $@
|
|
|
|
nvim-install: $(PWD)/nvim/LICENSE
|
|
git submodule sync nvim
|
|
$(link)
|
|
|
|
ranger-install: $(PWD)/ranger/plugins/zoxide/LICENSE.md
|
|
git submodule sync ./ranger/plugins/zoxide
|
|
$(link)
|
|
|
|
update:
|
|
git pull
|
|
git submodule sync --recursive
|
|
|
|
install-all: alacritty-install config-install doom-install herbstluftwm-install nnn-install nvim-install ranger-install
|
|
|
|
.PHONY: %-install update all install-all
|
|
|
|
# end
|