tool:=$(dir $(lastword $(MAKEFILE_LIST)))
+mul=$(foreach p,$1,$(foreach s,$2,$p$s))
all: $(HOME)/.asciidoc/backends/slidy2
$(tool)/.../lib/tool/asciidoc/backend/slidy2/install
$<
+$(call mul,$(patsubst %.ad,%,$(wildcard *.ad)),.roff .html): \
+ $(tool)/.../script/hledger-equity \
+ $(tool)/.../script/hledger-print-csv
+$(tool)/.../script/%:
+ $(MAKE) -C $(@D) $(@F)
+
tool/asciidoc := $(tool)/.../lib/tool/asciidoc
include $(tool/asciidoc)/GNUmakefile
%.slidy.html: export ASCIIDOC_FLAGS+=-atabsize=0
%.slidy.html: export ASCIIDOC_FLAGS+=-alatexmath
-$(patsubst %.ad,%.html,$(wildcard *.slidy.ad)): \
+$(patsubst %.ad,%.html,$(wildcard *.ad)): \
$(tool/asciidoc)/conf/latexmath.conf \
$(tool/asciidoc)/conf/vim.conf