From a94e7cb72fe74ffd3218a9a51723673a379cb628 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 8 Sep 2011 16:57:47 -0400 Subject: [PATCH] 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. --- .gitignore | 1 + Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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) $* -- 2.43.2