diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-08-05 18:30:45 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-08-05 18:30:45 -0700 |
commit | 5ddb72e86d9556e670a9350e9cc8d0d18ac213c8 (patch) | |
tree | 6b766356160b5f511da87f90fd3551009ab1da04 /configs/rcs/Makefile | |
parent | [emacs] set font size for osx (diff) | |
download | emacs.d-5ddb72e86d9556e670a9350e9cc8d0d18ac213c8.tar.gz |
Shuffling things around in this repo
Diffstat (limited to 'configs/rcs/Makefile')
-rw-r--r-- | configs/rcs/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/configs/rcs/Makefile b/configs/rcs/Makefile new file mode 100644 index 0000000..2b78a51 --- /dev/null +++ b/configs/rcs/Makefile @@ -0,0 +1,40 @@ +INTO = $(HOME) + + +INSTALL = \ + aspell.en.pws \ + bashrc \ + ctags \ + emacs.d \ + gitconfig \ + gitignore + + +INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL)) +LN = @ln -sf + +$(INTO)/.% : % + @[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak + $(LN) $(PWD)/$< $@ + +$(HOME)/.ssh/authorized_keys: + @curl https://github.com/fcuny.keys -o $(HOME)/.ssh/authorized_keys + +$(HOME)/workspace: + @mkdir -p $(HOME)/workspace/ + +.PHONY: git +git: + @git config --local user.email "franck.cuny@gmail.com" + @git config --local user.name "Franck Cuny" + +.PHONY: check-dead +check-dead: + @find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -print + +.PHONY: clean-dead +clean-dead: + @find ~ -maxdepth 1 -name '.*' -type l -exec test ! -e {} \; -delete + +.PHONY: install +install: $(INSTALLED) $(HOME)/workspace $(HOME)/.ssh/authorized_keys |