diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1550bc4 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +DOTDIR = $(HOME)/dotfiles +ZSHRC = .zshrc +VIMRC = .vimrc +TMUXCONF = .tmux.conf +BASHRC = .bashrc +BASHALIAS = .bash_aliases +PROFILE = .profile +CONFFILES = $(HOME)/$(ZSHRC) $(HOME)/$(VIMRC) $(HOME)/$(TMUXCONF) $(HOME)/$(BASHRC) \ + $(HOME)/$(BASHALIAS) $(HOME)/$(PROFILE) + +.PHONY: all +all: $(CONFFILES) + +$(HOME)/$(ZSHRC): $(DOTDIR)/$(ZSHRC) + touch $@ + echo "source $<" > $@ + +$(HOME)/$(VIMRC): $(DOTDIR)/$(VIMRC) + touch $@ + echo "so $<" > $@ + +$(HOME)/$(TMUXCONF): $(DOTDIR)/$(TMUXCONF) + touch $@ + echo "source-file $<" > $@ + +$(HOME)/$(BASHRC): $(DOTDIR)/$(BASHRC) + touch $@ + echo "source $<" > $@ + +$(HOME)/$(BASHALIAS): $(DOTDIR)/$(BASHALIAS) + touch $@ + echo "source $<" > $@ + +$(HOME)/$(PROFILE): $(DOTDIR)/$(PROFILE) + touch $@ + echo "source $<" > $@ + +.PHONY: clean +clean: + rm -f $(CONFFILES) + +.PHONY: re +re: clean all |
