From 07cf29d61746c130cf9c5ef5fe86c8204eb26408 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 28 Sep 2009 00:24:41 -0500 Subject: convert my installation script into a makefile --- Makefile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf