From c632ae1a73c9115923996887995aa7f025a19c6f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 16 Feb 2009 19:37:34 +0100 Subject: [PATCH] Add setup support. The Makefile contains a setup target which generates files and creates all necessary symbolic links in ~/. --- Makefile | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) 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 -- 2.45.2