SHELL = /bin/sh Dirp = if [ ! -d $(dir) ]; then mkdir $(dir); fi; Dirs = $(HOME)/.vim $(HOME)/.vim/tags $(HOME)/.vim/plugin $(HOME)/.vim/colors \ $(HOME)/tmp $(HOME)/tmp/backup \ $(HOME)/bin $(HOME)/bin/wisp Wetc = $(HOME)/etc/wisp Screenrc = $(HOME)/.screenrc Vimrc = $(HOME)/.vimrc Gvimrc = $(HOME)/.gvimrc Bashrc = $(HOME)/.bashrc Emacs = $(HOME)/.emacs Wisprc = ../wisp/etc/our_wisprc Wetc = $(HOME)/etc/wisp Screenrc1 = $(Wetc)/our_screenrc Vimrc1 = $(Wetc)/our_vimrc Gvimrc1 = $(Wetc)/our_gvimrc Bashrc1 = $(Wetc)/config/our_bashrc Wisprc1 = $(Wetc)/our_wisprc Emacs1 = $(Wetc)/our_dotemacs SheBang = $(HOME)/lib/wisp/MakeSheBang Bin = $(HOME)/bin/wisp all : hello wisp installdirs install hello : @echo "making gofun .......... some good old-fashioned UNIX stuff" # bug! assumes i always use the wisp trunk! wisp : @cd ../wisp; make # make any required directors installdirs : @$(foreach dir, $(Dirs), $(Dirp) ) # Copy executables to directories on search paths; also, copy over the # the files that the executables will search for install : rcs vim bashes gawks etc rcs : wisprc screenrc vimrc gvimrc bashrc emacs $(HOME)/.nanorc screenrc : $(Screenrc1) @if [ ! -f $(Screenrc) ];then echo "source $(Screenrc1)" > $(Screenrc); fi wisprc : $(Wisprc1) @if [ ! -f $(Wisprc1) ];then cp $(Wisprc) $(Wisprc1); fi bashrc : $(Wisprc1) $(Bashrc1) @if [ ! -f $(Bashrc) ];then echo "source $(Wisprc1)" > $(Bashrc) ; fi gvimrc : $(Gvimrc1) @if [ ! -f $(Gvimrc) ];then echo 'source $$HOME/etc/wisp/our_gvimrc' > $(Gvimrc); fi vimrc : $(Vimrc1) @if [ ! -f $(Vimrc) ];then echo 'source $$HOME/etc/wisp/our_vimrc' > $(Vimrc); fi emacs : $(Emacs1) @if [ ! -f $(Emacs) ];then echo '(load "$$HOME/etc/wisp/our_dotemacs")' > $(Emacs); fi vim : lib/colors.vim/* @cd lib/colors.vim && make -f ~/lib/wisp/MakeNewer prefix=$(HOME)/.vim/colors $(Screenrc1) : etc/our_screenrc ; cp $^ $@ $(Gvimrc1) : etc/our_gvimrc ; cp $^ $@ $(Bashrc1) : etc/our_bashrc ; cp $^ $@; chmod +x $(Bashrc1); $(Vimrc1) : etc/our_vimrc ; cp $^ $@ $(Emacs1) : etc/our_dotemacs ; cp $^ $@ $(HOME)/.nanorc : etc/our_nanorc ; cp $^ $@ bashes : $(SheBang) @ cd bash && make -f $(SheBang) prefix=$(Bin) com=$(shell which bash) gawks : $(foreach p, $(wildcard gawk/* ), \ (echo '#!'$(shell which gawk)' -f';cat $p)>$(Bin)/$(notdir $p); \ chmod +x $(Bin)/$(notdir $p);) clean : @rm -f $(Screerc1) $(Gvimrc1) $(Bashrc1) $(Vimrc1) clobber : clean @rm -f $(Screenrc) $(Vimrc) $(Gvimrc) $(Bashrc) $(HOME)/.nanorc @rm -rf $(HOME)/.vim outliner: vimoutliner-0.3.4/install.sh cd vimoutliner-0.3.4 && bash install.sh