2.13: whats-new: fix bad URL
[lttng-docs.git] / Makefile
1 # Copyright 2016 Philippe Proulx <pproulx@efficios.com>
2
3 CONF = asciidoc.html5.conf
4 PREFIX = lttng-docs
5 ALLVERSIONS = $(sort $(wildcard 2.*))
6
7 ASCIIDOC = asciidoc -v -f $(CONF) -a source-highlighter=pygments
8 RM = rm -rf
9
10 define 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
18 view-$(1):
19 xdg-open $(1)/$(PREFIX)-$(1).html
20
21 .PHONY: view-$(1)
22 endef
23
24 .PHONY: all
25
26 all: $(ALLVERSIONS)
27
28 $(foreach v,$(ALLVERSIONS),$(eval $(call vrule,$(v))))
29
30 .PHONY: clean
31
32 clean:
33 $(RM) $(foreach v,$(ALLVERSIONS),$(v)/$(PREFIX)-$(v).html)
This page took 0.028103 seconds and 4 git commands to generate.