CONF = asciidoc.html5.conf
PREFIX = lttng-docs
ALLVERSIONS = $(sort $(wildcard 2.*))
+ALLCHECK = $(foreach v, $(ALLVERSIONS), check-$(v))
ASCIIDOC = asciidoc -v -f $(CONF) -a source-highlighter=pygments
RM = rm -rf
.PHONY: $(1)
$(1): $(1)/$(PREFIX)-$(1).html
+
+view-$(1):
+ xdg-open $(1)/$(PREFIX)-$(1).html
+
+.PHONY: view-$(1)
+
+check-$(1): $(1)/$(PREFIX)-$(1).txt $(CONF)
+ python3 tools/check.py $(1)/$(PREFIX)-$(1).txt
+
+.PHONY: check-$(1)
endef
.PHONY: all
$(foreach v,$(ALLVERSIONS),$(eval $(call vrule,$(v))))
+.PHONY: check
+
+check: $(ALLCHECK)
+
.PHONY: clean
clean: