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))))
|
EXCLUDE := .DS_Store .git .gitmodules .gitignore
|
||||||
CANDIDATES := $(wildcard .??*)
|
DOTFILES := $(filter-out $(EXCLUDE), $(wildcard .??*))
|
||||||
EXCLUSIONS := Makefile screenshot.png .DS_Store .git .gitmodules .gitignore README.md init
|
|
||||||
DOTFILES := $(filter-out $(EXCLUSIONS), $(CANDIDATES))
|
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
@ -10,7 +8,6 @@ help:
|
|||||||
@echo "make deploy #=> Create symlink to home directory"
|
@echo "make deploy #=> Create symlink to home directory"
|
||||||
@echo "make update #=> Fetch changes for this repo"
|
@echo "make update #=> Fetch changes for this repo"
|
||||||
@echo "make install #=> Run make update, deploy, init"
|
@echo "make install #=> Run make update, deploy, init"
|
||||||
@echo "make clean #=> Remove the dot files and this repo"
|
|
||||||
|
|
||||||
list:
|
list:
|
||||||
@$(foreach val, $(DOTFILES), /bin/ls -dF $(val);)
|
@$(foreach val, $(DOTFILES), /bin/ls -dF $(val);)
|
||||||
@ -27,9 +24,4 @@ update:
|
|||||||
git submodule foreach git pull origin master
|
git submodule foreach git pull origin master
|
||||||
|
|
||||||
install: update deploy
|
install: update deploy
|
||||||
@exec $$SHELL
|
@exec $$SHELL
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo 'Remove dot files in your home directory...'
|
|
||||||
@-$(foreach val, $(DOTFILES), rm -vrf $(HOME)/$(val);)
|
|
||||||
-rm -rf $(DOTPATH)
|
|
Loading…
Reference in New Issue
Block a user