The targets allow the checks to be run for each version (`make
check`), or for a given version (`make check-2.13`).
Multiple checks can be run in parallel with `make check -j$(nproc)`
The pass message output of the check script has been updated to
include the input filename in order to make it clearer which file
succeeds when running checks in parallel.
Change-Id: Ia7aceb97dc35f54ffa791daa285d8bce2dd31ca9
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
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:
if checker.has_error:
return 1
- print(colored('All good!', 'green', attrs=['bold']))
+ print(colored('{}: All good!'.format(args.infile), 'green', attrs=['bold']))
return 0