diff --git a/documentation/Makefile b/documentation/Makefile --- a/documentation/Makefile +++ b/documentation/Makefile @@ -29,12 +29,20 @@ .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: +.for dep in ${PYTHON_CMD} ${HUGO_CMD} /usr/local/bin/asciidoctor /usr/local/bin/rougify +.if !exists(${dep}) + @(echo ${dep} not found, please run 'pkg install docproj'; exit 1;) +.endif +.endfor starting-message: .PHONY @echo ---------------------------------------------------------------