diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2021-01-28 04:22:48 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2021-01-29 03:15:10 +0000 |
commit | 127d3f2965db2f4fad12bfabeeec9370f0972e92 (patch) | |
tree | a6efc821f333a8e1bddab4013899e3dd6b5bb370 /website/Makefile | |
parent | 885316d9e8d388a3a5b5d15972c9e81c46f918fb (diff) | |
download | doc-127d3f2965db2f4fad12bfabeeec9370f0972e92.tar.gz doc-127d3f2965db2f4fad12bfabeeec9370f0972e92.zip |
build: remove generate target, split run out
This ensures that `make all` will never try to run the internal server.
Instead, the user can run it manually if they need to.
Reviewed-by: gjb, hrs
Differential-Revision: https://reviews.freebsd.org/D28384
Diffstat (limited to 'website/Makefile')
-rw-r--r-- | website/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/website/Makefile b/website/Makefile index 85b00f6df8..c6ea6d6cef 100644 --- a/website/Makefile +++ b/website/Makefile @@ -6,19 +6,25 @@ # 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 +# run - serves the built website for local browsing +# +# The run target uses hugo's built-in webserver to make the built website +# available for local browsing. The website should have been built prior +# to attempting to use the `run` target. By default, hugo will start its +# webserver on port 1313. MAINTAINER=carlavilla@FreeBSD.org PYTHON_CMD = /usr/local/bin/python3.7 HUGO_CMD = /usr/local/bin/hugo +.ORDER: all run + .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 .PHONY +all: starting-message generate-releases build starting-message: .PHONY @echo --------------------------------------------------------------- |