From: Nick Bowler Date: Thu, 8 Sep 2011 20:57:47 +0000 (-0400) Subject: Add a Makefile to precompile startup scripts. X-Git-Url: https://git.draconx.ca/gitweb/zshconf.git/commitdiff_plain/a94e7cb72fe74ffd3218a9a51723673a379cb628 Add a Makefile to precompile startup scripts. This doesn't seem to reduce shell startup time by any significant amount, but may as well have support for it. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..416cfaa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.zwc diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4767041 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +ZCOMPILE = zsh -c 'zcompile $$@' zsh + +SCRIPTS = $(wildcard zshenv zprofile zshrc zlogin zlogout) +TARGETS = $(SCRIPTS:%=%.zwc) + +all: $(TARGETS) + +clean: + rm -f $(TARGETS) + +%.zwc: % + $(ZCOMPILE) $*