diff --git a/Makefile b/Makefile index 0ab1a8c..94d3ea5 100644 --- a/Makefile +++ b/Makefile @@ -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