Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cutwater committed Jul 24, 2022
1 parent b70637e commit f912169
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f912169

Please sign in to comment.