make: shellcompletions: top level rule to build shell completions

This commit is contained in:
Simon Michael 2021-07-20 21:23:09 -10:00
parent 80003a5190
commit 9701e19169
2 changed files with 9 additions and 0 deletions

View File

@ -429,6 +429,12 @@ ghci-shake: $(call def-help,ghci-shake, start ghci REPL on Shake.hs)
copy-bins-to-%: $(call def-help,copy-bins-to-VER, save ~/.local/bin/hledger* as hledger*-VER)
V=$*; for B in $(BINARIES); do cp ~/.local/bin/$$B ~/.local/bin/$$B.$$V; done
# make must be GNU Make 4.3+
.PHONY: shellcompletions
shellcompletions: $(call def-help,shellcompletions, update shell completions in hledger package)
make -C hledger/shell-completion/ clean-all all
###############################################################################
$(call def-help-subheading,TESTING:)

View File

@ -1,3 +1,6 @@
# Generate shell completions.
# Requires: GNU Make 4.3+, GNU m4
# Setting the number of job runners like this in the makefile only works in
# GNU Make 4.3 or later. Older versions will require that either an env
# variable be set before running or command line flag be passed at runtime to