2.9: document LTTng-UST agent instrumentation points
[lttng-docs.git] / Makefile
... / ...
CommitLineData
1# Copyright 2016 Philippe Proulx <pproulx@efficios.com>
2
3CONF = asciidoc.html5.conf
4PREFIX = lttng-docs
5ALLVERSIONS = $(sort $(wildcard 2.*))
6
7ASCIIDOC = asciidoc -v -f $(CONF) -a source-highlighter=pygments
8RM = rm -rf
9
10define vrule
11$(1)/$(PREFIX)-$(1).html: $(1)/$(PREFIX)-$(1).txt $(CONF)
12 $(ASCIIDOC) -a "lttng_version=$(1)" $(1)/$(PREFIX)-$(1).txt
13
14.PHONY: $(1)
15
16$(1): $(1)/$(PREFIX)-$(1).html
17
18view-$(1):
19 xdg-open $(1)/$(PREFIX)-$(1).html
20
21.PHONY: view-$(1)
22endef
23
24.PHONY: all
25
26all: $(ALLVERSIONS)
27
28$(foreach v,$(ALLVERSIONS),$(eval $(call vrule,$(v))))
29
30.PHONY: clean
31
32clean:
33 $(RM) $(foreach v,$(ALLVERSIONS),$(v)/$(PREFIX)-$(v).html)
This page took 0.022849 seconds and 4 git commands to generate.