Makefile: move all variable definitions to the top, before targets
This commit is contained in:
parent
36fca65404
commit
3d3cd2d4a2
@ -34,6 +34,17 @@ endif
|
||||
|
||||
CMDOPTFILES := $(foreach CMD,$(COMMANDS),options-$(CMD).txt)
|
||||
|
||||
define M4DEPS :=
|
||||
hledger-completion.bash.m4 \
|
||||
hledger-completion.bash.stub \
|
||||
commands.txt \
|
||||
commands-list.txt \
|
||||
query-filters.txt \
|
||||
generic-options.txt \
|
||||
$(CMDOPTFILES)
|
||||
endef
|
||||
|
||||
|
||||
all: hledger-completion.bash
|
||||
|
||||
.PHONY: install
|
||||
@ -52,16 +63,6 @@ uninstall:
|
||||
rm -vf "$(DESTDIR)$(BASHCOMPDIR)/hledger-$$ext" ; \
|
||||
done
|
||||
|
||||
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 -g hledger-completion.bash.m4 > $@
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user