doc/website/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

35 lines
1,007 B
Makefile

# Generate the FreeBSD website
#
# 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 releases.toml and compile all the website
# generate - generate the releases.toml and build all the website
MAINTAINER=carlavilla@FreeBSD.org
PYTHON_CMD = /usr/local/bin/python3.7
HUGO_CMD = /usr/local/bin/hugo
.ORDER: starting-message generate-books-toc
.ORDER: starting-message build
.ORDER: generate-books-toc build
all: starting-message generate-releases run
generate: starting-message generate-releases build
starting-message:
@echo ---------------------------------------------------------------
@echo Building the website
@echo ---------------------------------------------------------------
generate-releases:
${PYTHON_CMD} ./tools/releases-toml.py -p ./shared/releases.adoc
run:
${HUGO_CMD} server -D
build:
${HUGO_CMD}