fix: Makefile

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
Vladislav Doster 2023-12-17 20:13:11 -06:00
parent 2eac1a9adf
commit 2887d76d39

View file

@ -1,2 +1,25 @@
ERROR: Unknown subcommand: `all: touch whatever ` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, , e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit ice-spec for (plugin or snippet) ID-1 ID-2 ⋯⋯`). See `help` for a more detailed usage information and the list of the subcommands.
.EXPORT_ALL_VARIABLES:
ZSH := $(shell command -v zsh 2> /dev/null)
SRC := zinit{'','-additional','-autoload','-install','-side'}.zsh
DOC_SRC := $(foreach wrd,$(SRC),../$(wrd))
.PHONY: all clean container doc doc/container tags tags/emacs tags/vim test zwc
clean:
rm -rf *.zwc doc/zsdoc/zinit{'','-additional','-autoload','-install','-side'}.zsh.adoc doc/zsdoc/data/
container:
docker build --tag=ghcr.io/zdharma-continuum/zinit:latest --file=docker/Dockerfile .
doc: clean
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\:\∞\.\+\@\-a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*)' $(DOC_SRC)"
doc/container: container
./scripts/docker-run.sh --docs --debug
test:
zunit run
zwc:
$(or $(ZSH),:) -fc 'for f in *.zsh; do zcompile -R -- $$f.zwc $$f || exit; done'