diff --git a/documentation/Makefile b/documentation/Makefile --- a/documentation/Makefile +++ b/documentation/Makefile @@ -29,12 +29,31 @@ .ORDER: all run +.ORDER: requirements .ORDER: starting-message generate-books-toc .ORDER: starting-message build .ORDER: generate-books-toc build -all: starting-message generate-books-toc build -run: starting-message generate-books-toc run-local +all: requirements starting-message generate-books-toc build +run: requirements starting-message generate-books-toc run-local + +requirements: + @if ! [ -f ${PYTHON_CMD} ]; then \ + echo python3 not found, please run 'pkg install python3'; \ + exit 1; \ + fi; + @if ! [ -f ${HUGO_CMD} ]; then \ + echo hugo not found, please run 'pkg install gohugo'; \ + exit 1; \ + fi; + @if ! [ -f /usr/local/bin/asciidoctor ]; then \ + echo asciidoctor not found, please run 'pkg install rubygem-asciidoctor'; \ + exit 1; \ + fi; + @if ! [ -f /usr/local/bin/rougify ]; then \ + echo rougify not found, please run 'pkg install rubygem-rouge'; \ + exit 1; \ + fi; starting-message: .PHONY @echo ---------------------------------------------------------------