diff options
author | Daniel Ebdrup Jensen <debdrup@FreeBSD.org> | 2021-02-14 21:39:20 +0000 |
---|---|---|
committer | Daniel Ebdrup Jensen <debdrup@FreeBSD.org> | 2021-02-14 21:50:52 +0000 |
commit | 989bbd57fa03b4efe7d920aeadeb0952c5960dda (patch) | |
tree | fa8a48ce004767c9ec42e6add7af42bd6be23f5a /website/Makefile | |
parent | 873687264f6c2da455686aca195204325cff88a4 (diff) | |
download | doc-989bbd57fa03b4efe7d920aeadeb0952c5960dda.tar.gz doc-989bbd57fa03b4efe7d920aeadeb0952c5960dda.zip |
Diffstat (limited to 'website/Makefile')
-rw-r--r-- | website/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/website/Makefile b/website/Makefile index 6337692942..2294db8838 100644 --- a/website/Makefile +++ b/website/Makefile @@ -18,6 +18,12 @@ MAINTAINER=carlavilla@FreeBSD.org PYTHON_CMD = /usr/local/bin/python3.7 HUGO_CMD = /usr/local/bin/hugo +.ifndef HOSTNAME +.HOST+=localhost +.else +.HOST+=$(HOSTNAME) +.endif + .ORDER: all run .ORDER: starting-message generate-releases @@ -36,7 +42,7 @@ generate-releases: .PHONY ${PYTHON_CMD} ./tools/releases-toml.py -p ./shared/releases.adoc run-local: .PHONY - ${HUGO_CMD} server -D + ${HUGO_CMD} server -D --baseURL="http://$(.HOST):1313" build: .PHONY ${HUGO_CMD} |