.PHONY: html ASCIIDOCTOR := $(shell which asciidoctor > /dev/null 2>&1 && which asciidoctor) ifeq ($(ASCIIDOCTOR),) ASCIIDOCTOR := $(shell ruby -r rubygems -e 'puts Gem.bin_path("asciidoctor", "asciidoctor")') endif html: @echo "Building HTML" @$(ASCIIDOCTOR) -b html -o report.html main.adoc