mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-21 03:08:10 +03:00
Add stub file to m4 build target prerequisites
And as it becomes unwieldy, put all the dependencies in a variable
This commit is contained in:
parent
4a32ebf8b5
commit
0498b8ff7c
@ -9,7 +9,17 @@ all: hledger-completion.bash
|
||||
COMMANDS := $(sort $(shell hledger | ./output-commands.sh | grep -v ^hledger | sort -u) ui web api)
|
||||
CMDOPTFILES := $(foreach CMD,$(COMMANDS),options-$(CMD).txt)
|
||||
|
||||
hledger-completion.bash: hledger-completion.bash.m4 commands.txt commands-list.txt query-filters.txt generic-options.txt $(CMDOPTFILES)
|
||||
define M4DEPS :=
|
||||
hledger-completion.bash.m4 \
|
||||
hledger-completion.bash.stub \
|
||||
commands.txt \
|
||||
commands-list.txt \
|
||||
query-filters.txt \
|
||||
generic-options.txt \
|
||||
$(CMDOPTFILES)
|
||||
endef
|
||||
|
||||
hledger-completion.bash: $(M4DEPS)
|
||||
m4 hledger-completion.bash.m4 > $@
|
||||
|
||||
generic-options.txt:
|
||||
|
Loading…
Reference in New Issue
Block a user