summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-09-28 00:24:41 -0500
committerJesse Luehrs <doy@tozt.net>2009-09-28 00:24:41 -0500
commit07cf29d61746c130cf9c5ef5fe86c8204eb26408 (patch)
tree8960b9ff9d0584de1a5324715fadec3455b765a8 /Makefile
parent7c1fb453163680e149c675ec16b5b6f078f398dc (diff)
downloadconf-07cf29d61746c130cf9c5ef5fe86c8204eb26408.tar.gz
conf-07cf29d61746c130cf9c5ef5fe86c8204eb26408.zip
convert my installation script into a makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3f55cba
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,57 @@
+INTO = $(HOME)
+INSTALL = abcde.conf \
+ bash_logout \
+ bashrc \
+ conkerorrc \
+ conkyrc \
+ crawlrc \
+ gitconfig \
+ gitignore \
+ gtkrc \
+ inputrc \
+ muttrc \
+ nethackrc \
+ procmailrc \
+ screenrc \
+ tmux.conf \
+ vimrc \
+ Xdefaults \
+ xinitrc \
+ xmobarrc \
+ bash \
+ bin \
+ irssi \
+ fortune \
+ module-setup \
+ ncmpc \
+ newsbeuter \
+ procmail \
+ re.pl \
+ services \
+ terminfo \
+ urxvt \
+ vim \
+ xmonad
+INSTALLED = $(patsubst %,$(INTO)/.%,$(INSTALL))
+
+ECHO = @echo
+LN = @ln -sf
+MKDIR = @mkdir -p
+RM = @rm -f
+
+build :
+
+install : $(INSTALLED)
+ $(MKDIR) $(INTO)/.ssh
+ $(LN) $(PWD)/authorized_keys $(INTO)/.ssh/
+ $(ECHO) Installed into $(HOME)
+
+clean :
+ $(ECHO) Cleaning from $(HOME)
+ $(RM) $(INSTALLED) $(INTO)/.ssh/authorized_keys
+
+$(INTO)/.% : %
+ @[ ! -f $@ ] || readlink -q $@ || mv -f $@ $@.bak
+ $(LN) $(PWD)/$< $@
+
+.PHONY: build install clean