From: Simon Ruderich Date: Mon, 16 Feb 2009 18:37:34 +0000 (+0100) Subject: Add setup support. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c632ae1a73c9115923996887995aa7f025a19c6f;p=config%2Fdotfiles.git Add setup support. The Makefile contains a setup target which generates files and creates all necessary symbolic links in ~/. --- diff --git a/Makefile b/Makefile index 8f0c21b..b5643e2 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,25 @@ -# Makefile for shell configuration files. At the moment only used for running -# tests. +# Makefile for shell configuration files. +# Generate necessary files and create symbolic links in ~/. +LINK=../link.sh +.PHONY: setup +setup: + # Generate ~/.less with lesskey. + lesskey lesskey + # Link setup for shells. + $(LINK) shell ~/.shell + $(LINK) bash ~/.bash + $(LINK) bash/rc ~/.bashrc + $(LINK) bash/profile ~/.bash_profile + $(LINK) zsh ~/.zsh + $(LINK) zsh/env ~/.zshenv + $(LINK) zsh/rc ~/.zshrc + $(LINK) zsh/logout ~/.zlogout + # Link setup for additional files. + $(LINK) colordiffrc ~/.colordiffrc + $(LINK) inputrc ~/.inputrc + $(LINK) screenrc ~/.screenrc + test: cd tests; zsh run.zsh - -# Generate files which are just provided here as template. -generate: - lesskey lesskey