X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=Makefile;h=b5643e27d965617413033b62b3ad2976432d0122;hp=8f0c21bf0aeaefb7d65f9ce5d3b35e199b12daa5;hb=c632ae1a73c9115923996887995aa7f025a19c6f;hpb=0d1c3c96beca1d3667df0fc7985423fab82d8086 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