Fix build race condition

Make `command-options` a prerequisite of `hledger-completion.bash`.
Currently the build succeeds only because the former takes less time
to finish than all the prerequisites of the latter. If you run a
`make clean && make -j 4`, the build would fail as they are built
in parallel.
This commit is contained in:
Vladimir Zhelezov 2020-12-16 06:24:53 +01:00
parent 13bf6fdcd8
commit bc66b23520

View File

@ -1,9 +1,9 @@
.PHONY: command-options clean
all: command-options hledger-completion.bash
all: hledger-completion.bash
hledger-completion.bash: hledger-completion.bash.m4 commands-list.txt query-filters.txt generic-options.txt
hledger-completion.bash: hledger-completion.bash.m4 commands-list.txt query-filters.txt generic-options.txt command-options
m4 hledger-completion.bash.m4 > $@
generic-options.txt: