Updated Makefile
This commit is contained in:
parent
9ddde607d0
commit
e6e0a5349d
14
Makefile
14
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
|
Loading…
Reference in New Issue
Block a user