diff --git a/Makefile b/Makefile index 4717939d..00075999 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,7 @@ zsh: $(HOME)/.zshrc $(ZSH_DIR) $(ZSH_CUSTOM_DIR) $(POWERLEVEL_DIR) $(HOME)/.p10k ssh: $(HOME)/.ssh/config $(HOME)/.ssh/sockets $(HOME)/.ssh/config.d -nvim: - nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' +nvim: $(PACKER_DIR) $(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/% $(FONT_TARGETS): $(FONT_DIR)/%: nerdfont_symbols/% @@ -44,6 +43,9 @@ $(HOME)/.ssh/config: $(HOME)/.ssh/%: ssh-% $(CONFIG_TARGETS) $(FONT_TARGETS) $(ZSH_TARGETS) $(HOME)/.zshrc $(HOME)/.p10k.zsh $(HOME)/.ssh/config: ln -s $(PWD)/$? $@ +$(PACKER_DIR): + git clone --depth 1 $(PACKER_REPO) $@ + $(ZSH_DIR): sh -c "$$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"