doc/documentation/Makefile
Kyle Evans dc7b79a328 build: slap some .ORDER on targets
This ensures that the build still generally works if one specifies jobs and
multiple targets at the same time.

Reviewed-by:	gjb, hrs
Differential-Revision:	https://reviews.freebsd.org/D28382
2021-01-28 21:15:10 -06:00

40 lines
1.3 KiB
Makefile

# Generate the FreeBSD documentation
#
# Copyright (c) 2020-2021, The FreeBSD Documentation Project
# Copyright (c) 2020-2021, Sergio Carlavilla <carlavilla@FreeBSD.org>
#
# Targets intended for use on the command line
#
# all (default) - generate the books TOC and compile all the documentation
# generate - generate the books TOC and build all the documentation
MAINTAINER=carlavilla@FreeBSD.org
PYTHON_CMD = /usr/local/bin/python3.7
HUGO_CMD = /usr/local/bin/hugo
LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr
.ORDER: starting-message generate-books-toc
.ORDER: starting-message build
.ORDER: generate-books-toc build
all: starting-message generate-books-toc run
generate: starting-message generate-books-toc build
starting-message:
@echo ---------------------------------------------------------------
@echo Building the documentation
@echo ---------------------------------------------------------------
generate-books-toc:
${PYTHON_CMD} ./tools/books-toc-parts-creator.py -l ${LANGUAGES}
${PYTHON_CMD} ./tools/books-toc-creator.py -l ${LANGUAGES}
${PYTHON_CMD} ./tools/books-toc-figures-creator.py -l ${LANGUAGES}
${PYTHON_CMD} ./tools/books-toc-tables-creator.py -l ${LANGUAGES}
${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES}
run:
${HUGO_CMD} server -D
build:
${HUGO_CMD} --minify