21 lines
606 B
Makefile
21 lines
606 B
Makefile
.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
|
|
|
|
ASCIIDOCTOR-PDF := $(shell which asciidoctor-pdf > /dev/null 2>&1 && which asciidoctor-pdf)
|
|
|
|
ifeq ($(ASCIIDOCTOR-PDF),)
|
|
ASCIIDOCTOR-PDF := $(shell ruby -r rubygems -e 'puts Gem.bin_path("asciidoctor-pdf", "asciidoctor-pdf")')
|
|
endif
|
|
|
|
html:
|
|
@echo "Building HTML"
|
|
@$(ASCIIDOCTOR) -b html5 -o report.html main.adoc
|
|
|
|
pdf:
|
|
@echo "Building PDF"
|
|
@$(ASCIIDOCTOR-PDF) -o report.pdf main.adoc
|