From f912169b1947bf5f837091e2a5e4761db09c4008 Mon Sep 17 00:00:00 2001 From: Alexander Saprykin Date: Sun, 24 Jul 2022 18:02:17 +0200 Subject: [PATCH] Add Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..95de428 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +DOTFILES := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) + +LINK := ln -sfnT + +.PHONY: help +help: + @echo "Usage: make [target]" + +.PHONY: all +all: zsh starship nvim + +.PHONY: zsh +zsh: + $(LINK) "$(DOTFILES)/.zsh" "$(HOME)/.zsh" + $(LINK) "$(DOTFILES)/.zshrc" "$(HOME)/.zshrc" + $(LINK) "$(DOTFILES)/.zshenv" "$(HOME)/.zshenv" + +.PHONY: starship +starship: + $(LINK) "$(DOTFILES)/.config/starship.toml" "$(HOME)/.config/starship.toml" + +.PHONY: nvim +nvim: + $(LINK) "$(DOTFILES)/.config/nvim" "$(HOME)/.config/nvim"