summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-01-19 10:39:46 -0800
committerFranck Cuny <fcuny@twitter.com>2019-01-19 10:39:46 -0800
commit9353c33abad9a486c67ea8bc82e06b37d3b36a92 (patch)
treeb27ff6c5259e7cd983b55153d1fe1438cc75cd6b /Makefile
parent[bash] go back to simple prompt. (diff)
downloademacs.d-9353c33abad9a486c67ea8bc82e06b37d3b36a92.tar.gz
clean up.
Removed scripts and some configs, they will be in their own repo.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e71e986
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+INTO = $(HOME)
+
+
+INSTALL = \
+ agignore \
+ 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