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 /documentation | |
parent | 873687264f6c2da455686aca195204325cff88a4 (diff) | |
download | doc-989bbd57fa03b4efe7d920aeadeb0952c5960dda.tar.gz doc-989bbd57fa03b4efe7d920aeadeb0952c5960dda.zip |
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index 57472063dd..3b5c1cfd65 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -19,6 +19,12 @@ 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 +.ifndef HOSTNAME +.HOST+=localhost +.else +.HOST+=$(HOSTNAME) +.endif + .ORDER: all run .ORDER: starting-message generate-books-toc @@ -41,7 +47,7 @@ generate-books-toc: .PHONY ${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES} run-local: .PHONY - ${HUGO_CMD} server -D + ${HUGO_CMD} server -D --baseURL="http://$(.HOST):1313" build: .PHONY ${HUGO_CMD} --minify |