mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
2b460a74f2
commit
3af321e8e4
13
Makefile
13
Makefile
|
|
@ -3,6 +3,7 @@
|
|||
ZSH := $(shell command -v zsh 2> /dev/null)
|
||||
SRC := share/{'git-process-output','rpm2cpio'}.zsh zinit{'','-additional','-autoload','-install','-side'}.zsh
|
||||
DOC_SRC := $(foreach wrd,$(SRC),../$(wrd))
|
||||
HAS_TTY := --tty
|
||||
|
||||
.PHONY: all clean container doc doc/container tags tags/emacs tags/vim test zwc
|
||||
|
||||
|
|
@ -26,6 +27,12 @@ container-docs: ## regenerate zinit docs in container
|
|||
container-shell: ## start shell in docker container
|
||||
$(CONTAINER_CMD) $(CONTAINER_NAME):latest
|
||||
|
||||
test: ## Run zunit tests
|
||||
zunit run
|
||||
|
||||
zwc: ## compile zsh files via zcompile
|
||||
$(or $(ZSH),:) -fc 'for f in *.zsh; do zcompile -R -- $$f.zwc $$f || exit; done'
|
||||
|
||||
tags: tags/emacs tags/vim ## run ctags to generate emacs and vim's format tag file.
|
||||
|
||||
tags/emacs: ## build emacs-style ctags file
|
||||
|
|
@ -54,12 +61,6 @@ tags/vim: ## build the vim-style ctags file
|
|||
printf 'Error: Please install a ctags first.\n'; \
|
||||
fi
|
||||
|
||||
test: ## Run zunit tests
|
||||
zunit run
|
||||
|
||||
zwc: ## compile zsh files via zcompile
|
||||
$(or $(ZSH),:) -fc 'for f in *.zsh; do zcompile -R -- $$f.zwc $$f || exit; done'
|
||||
|
||||
help: ## display available make targets
|
||||
@ # credit: tweekmonster github gist
|
||||
@echo "$$(grep -hE '^[a-zA-Z0-9_-]+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\033[36m\1\\033[m:\2/' | column -c2 -t -s : | sort)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue