Emacsg: Document help and helpall targets here

Hide bootstrap-borg, when that is done; and the codespell targets
before then.
This commit is contained in:
Jonas Bernoulli 2022-11-07 00:44:28 +01:00
parent 015bc6d5af
commit 4ebfb21133
No known key found for this signature in database
GPG Key ID: 230C2EFBB326D927

View File

@ -1,17 +1,28 @@
-include lib/borg/borg.mk
ifndef BORG_DIR
help helpall::
$(info )
$(info Bootstrapping)
$(info -------------)
$(info make bootstrap-borg = make borg and make targets available)
@printf "\n"
bootstrap-borg:
@git submodule--helper clone --name borg --path lib/borg \
--url git@github.com:emacscollective/borg.git
@cd lib/borg; git symbolic-ref HEAD refs/heads/master
@cd lib/borg; git reset --hard HEAD
else
helpall::
$(info Test and fix targets)
$(info --------------------)
$(info make codespell-dry = run codespell, dry run)
$(info make codespell-fix = run codespell, write fixes)
$(info )
@printf "\n"
codespell-dry:
@cd lib; codespell \
@ -26,3 +37,5 @@ codespell-fix:
--exclude-file ~/.emacs.d/etc/codespell/ignore-lines \
--skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \
~/.emacs.d/etc/codespell/ignore-files | tr "\\n" ",")
endif