Changeset View
Changeset View
Standalone View
Standalone View
documentation/Makefile
Show All 15 Lines | |||||
MAINTAINER=carlavilla@FreeBSD.org | MAINTAINER=carlavilla@FreeBSD.org | ||||
LOCALBASE?= /usr/local | LOCALBASE?= /usr/local | ||||
PYTHON_CMD = ${LOCALBASE}/bin/python3 | PYTHON_CMD = ${LOCALBASE}/bin/python3 | ||||
RUBY_CMD = ${LOCALBASE}/bin/ruby | RUBY_CMD = ${LOCALBASE}/bin/ruby | ||||
HUGO_CMD = ${LOCALBASE}/bin/hugo | HUGO_CMD = ${LOCALBASE}/bin/hugo | ||||
HUGO_ARGS?= --verbose --minify | |||||
ASCIIDOCTORPDF_CMD= ${LOCALBASE}/bin/asciidoctor-pdf | ASCIIDOCTORPDF_CMD= ${LOCALBASE}/bin/asciidoctor-pdf | ||||
.if defined(DOC_LANG) && !empty(DOC_LANG) | .if defined(DOC_LANG) && !empty(DOC_LANG) | ||||
LANGUAGES = ${DOC_LANG} | LANGUAGES = ${DOC_LANG} | ||||
.else | .else | ||||
LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr | LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr | ||||
.endif | .endif | ||||
RUBYLIB = ../shared/lib | RUBYLIB = ../shared/lib | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | generate-books-toc: .PHONY | ||||
${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES} | ${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES} | ||||
generate-pgpkeys-txt: static/pgpkeys/pgpkeys.txt | generate-pgpkeys-txt: static/pgpkeys/pgpkeys.txt | ||||
static/pgpkeys/pgpkeys.txt: static/pgpkeys/*key | static/pgpkeys/pgpkeys.txt: static/pgpkeys/*key | ||||
${RUBY_CMD} ./tools/global-pgpkeys-creator.rb | ${RUBY_CMD} ./tools/global-pgpkeys-creator.rb | ||||
run-local: .PHONY | run-local: .PHONY | ||||
${HUGO_CMD} server -D $(BIND:D--bind=$(BIND)) --baseURL="http://$(.HOST):1313" | ${HUGO_CMD} server ${HUGO_ARGS} -D $(BIND:D--bind=$(BIND)) --baseURL="http://$(.HOST):1313" | ||||
imp: tangential bug: $(.HOST) should be $(BIND) when BIND is set, otherwise the baseURL will go to… | |||||
Done Inline ActionsThanks, I'll open another review for it dbaio: Thanks, I'll open another review for it | |||||
build: .PHONY | build: .PHONY | ||||
${HUGO_CMD} --minify | ${HUGO_CMD} ${HUGO_ARGS} | ||||
# | # | ||||
# PDF targets | # PDF targets | ||||
# Use DOC_LANG to choose the language, e.g., make DOC_LANG="en,fr" pdf-books | # Use DOC_LANG to choose the language, e.g., make DOC_LANG="en,fr" pdf-books | ||||
# | # | ||||
pdf: pdf-articles pdf-books | pdf: pdf-articles pdf-books | ||||
pdf-books-target: | pdf-books-target: | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |
tangential bug: $(.HOST) should be $(BIND) when BIND is set, otherwise the baseURL will go to the localhost of the remote machine and fail.