-# 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