Skip to content

Commit

Permalink
feat: clean Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: David Calvert <[email protected]>
  • Loading branch information
dotdc committed May 23, 2023
1 parent 1d8a40f commit c0dd6ee
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
SHELL := /bin/bash
.DEFAULT_GOAL := dotfiles

.PHONY: minimal
minimal: init bash end

.PHONY: dotfiles
dotfiles: init bash fonts git tmux xorg end

Expand All @@ -11,9 +14,6 @@ all: dotfiles vim vscode

.PHONY: init
init:
################################################################################
# dotfiles
################################################################################
@mkdir -p ~/.bak
@echo "Created ~/.bak folder"

Expand Down Expand Up @@ -67,9 +67,6 @@ xorg:

.PHONY: vim
vim:
################################################################################
# vim
################################################################################
@cp ~/.vimrc ~/.bak/ &> /dev/null | true
@rm ~/.vimrc &> /dev/null | true
ln -s ${PWD}/.vimrc ~/.vimrc
Expand All @@ -85,9 +82,6 @@ vim:

.PHONY: vscode
vscode:
################################################################################
# vscode
################################################################################
@cp ~/.config/Code/User/settings.json ~/.bak/vscode.settings.json &> /dev/null | true
@rm ~/.config/Code/User/settings.json &> /dev/null | true
@mkdir -p ~/.config/Code/User
Expand All @@ -114,17 +108,6 @@ vscode:
code --install-extension HashiCorp.HCL
code --install-extension yzhang.markdown-all-in-one

.PHONY: macos
macos:
################################################################################
# macos
################################################################################
@cp ~/.Brewfile ~/.bak/.Brewfile &> /dev/null | true
@rm ~/.Brewfile &> /dev/null | true
ln -s ${PWD}/.Brewfile ~/.Brewfile

brew bundle install --global

.PHONY: end
end:
@echo "A copy of the previous dotfiles are available in the '~/.bak' folder."

0 comments on commit c0dd6ee

Please sign in to comment.