Add check and check-VERSION targets
[lttng-docs.git] / Makefile
index 0271a0db0c21b2794cf26e36664ad09fe10c2053..26b0b6b64e2749c9f9a751d19ee7656593775072 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
 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
@@ -19,6 +20,11 @@ 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
@@ -27,6 +33,10 @@ all: $(ALLVERSIONS)
 
 $(foreach v,$(ALLVERSIONS),$(eval $(call vrule,$(v))))
 
+.PHONY: check
+
+check: $(ALLCHECK)
+
 .PHONY: clean
 
 clean:
This page took 0.022374 seconds and 4 git commands to generate.