X-Git-Url: http://git.cyclocoop.org/?p=tool%2Fhledger.git;a=blobdiff_plain;f=doc%2FGNUmakefile;fp=doc%2FGNUmakefile;h=49727d1fd8745b08883e101145e5b53037d9789e;hp=3ccf846fc40c488229e09c7131a49159e2cd6b24;hb=707b0a621cd3c97d5d7e22e855272b3f865a2d56;hpb=30e9b83c521f5149836e1ef0b544676370721efe diff --git a/doc/GNUmakefile b/doc/GNUmakefile index 3ccf846..49727d1 100644 --- a/doc/GNUmakefile +++ b/doc/GNUmakefile @@ -1,4 +1,5 @@ tool:=$(dir $(lastword $(MAKEFILE_LIST))) +mul=$(foreach p,$1,$(foreach s,$2,$p$s)) all: $(HOME)/.asciidoc/backends/slidy2 @@ -7,6 +8,12 @@ $(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 @@ -33,6 +40,6 @@ $(tool)/.../lib/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