From bc66b235202865460a7745853578358e0337ed5d Mon Sep 17 00:00:00 2001 From: Vladimir Zhelezov Date: Wed, 16 Dec 2020 06:24:53 +0100 Subject: [PATCH] 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. --- shell-completion/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-completion/Makefile b/shell-completion/Makefile index a838b5dc4..10f64b171 100644 --- a/shell-completion/Makefile +++ b/shell-completion/Makefile @@ -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: