diff --git a/documentation/Makefile b/documentation/Makefile --- a/documentation/Makefile +++ b/documentation/Makefile @@ -29,12 +29,29 @@ LOCALBASE?= /usr/local +.if ${OS} == "FreeBSD" PYTHON_CMD = ${LOCALBASE}/bin/python3 RUBY_CMD = ${LOCALBASE}/bin/ruby HUGO_CMD = ${LOCALBASE}/bin/hugo +.elif ${OS} == "Darwin" +PYTHON_CMD = /usr/bin/python3 +RUBY_CMD = /usr/bin/ruby +HUGO_CMD = ${LOCALBASE}/bin/hugo +.elif ${OS} == "Linux" +PYTHON_CMD = /usr/bin/python3 +RUBY_CMD = /usr/bin/ruby +HUGO_CMD = /usr/bin/hugo +.else +.error Unsupported Platform, stopping make +.endif + HUGO_ARGS?= --verbose --minify ASCIIDOCTOR_CMD= ${LOCALBASE}/bin/asciidoctor ASCIIDOCTORPDF_CMD= ${LOCALBASE}/bin/asciidoctor-pdf +ROUGE_CMD= ${LOCALBASE}/bin/rougify +.if !exists(${ASCIIDOCTOR_CMD}) || !exists(${ASCIIDOCTORPDF_CMD}) || !exists(${ROUGE_CMD}) +.error Please install asciidoctor, asciidoctor-pdf, or rouge via rubygem +.endif SED_CMD = /usr/bin/sed .if defined(DOC_LANG) && !empty(DOC_LANG) LANGUAGES= ${DOC_LANG:S/,/ /g} diff --git a/website/Makefile b/website/Makefile --- a/website/Makefile +++ b/website/Makefile @@ -18,8 +18,18 @@ # List of all languages we have content for ALL_LANGUAGES= de el en es fr hu it ja nl ru tr zh-cn zh-tw +.if ${OS} == "FreeBSD" PYTHON_CMD = /usr/local/bin/python3 HUGO_CMD = /usr/local/bin/hugo +.elif ${OS} == "Darwin" +PYTHON_CMD = /usr/bin/python3 +HUGO_CMD = /usr/local/bin/hugo +.elif ${OS} == "Linux" +PYTHON_CMD = /usr/bin/python3 +HUGO_CMD = /usr/bin/hugo +.else +.error Unsupported Platform, stopping make +.endif HUGO_ARGS?= --verbose RUBYLIB = ../shared/lib .export RUBYLIB