mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
23 lines
541 B
Makefile
23 lines
541 B
Makefile
|
|
.PHONY: commands clean
|
|
|
|
all: generic-options.txt commands hledger-completion.bash
|
|
|
|
generic-options.txt:
|
|
hledger -h | ./output-options.sh > $@
|
|
|
|
commands.txt:
|
|
hledger | ./output-commands.sh | grep -v ^hledger > $@
|
|
|
|
commands-list.txt: commands.txt
|
|
paste -sd, $^ | tr -d '\n' > $@
|
|
|
|
commands: commands.txt
|
|
parallel -j8 'hledger {} -h | ./output-options.sh > options-{}.txt' < commands.txt
|
|
|
|
hledger-completion.bash: hledger-completion.bash.m4 commands-list.txt
|
|
m4 hledger-completion.bash.m4 > $@
|
|
|
|
clean:
|
|
rm -f *.txt hledger-completion.bash
|