diff --git a/Makefile b/Makefile index 6d9e7e7..74d4c70 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ -DOTPATH := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) -CANDIDATES := $(wildcard .??*) -EXCLUSIONS := Makefile screenshot.png .DS_Store .git .gitmodules .gitignore README.md init -DOTFILES := $(filter-out $(EXCLUSIONS), $(CANDIDATES)) +EXCLUDE := .DS_Store .git .gitmodules .gitignore +DOTFILES := $(filter-out $(EXCLUDE), $(wildcard .??*)) all: install @@ -10,7 +8,6 @@ help: @echo "make deploy #=> Create symlink to home directory" @echo "make update #=> Fetch changes for this repo" @echo "make install #=> Run make update, deploy, init" - @echo "make clean #=> Remove the dot files and this repo" list: @$(foreach val, $(DOTFILES), /bin/ls -dF $(val);) @@ -27,9 +24,4 @@ update: git submodule foreach git pull origin master install: update deploy - @exec $$SHELL - -clean: - @echo 'Remove dot files in your home directory...' - @-$(foreach val, $(DOTFILES), rm -vrf $(HOME)/$(val);) - -rm -rf $(DOTPATH) + @exec $$SHELL \ No newline at end of file