Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178386762
D31919.1796641576.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D31919.1796641576.diff
View Options
diff --git a/documentation/Makefile b/documentation/Makefile
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -29,12 +29,29 @@
LOCALBASE?= /usr/local
+.if ${OS} == "FreeBSD"
PYTHON_CMD = ${LOCALBASE}/bin/python3
RUBY_CMD = ${LOCALBASE}/bin/ruby
HUGO_CMD = ${LOCALBASE}/bin/hugo
+.elif ${OS} == "Darwin"
+PYTHON_CMD = /usr/bin/python3
+RUBY_CMD = /usr/bin/ruby
+HUGO_CMD = ${LOCALBASE}/bin/hugo
+.elif ${OS} == "Linux"
+PYTHON_CMD = /usr/bin/python3
+RUBY_CMD = /usr/bin/ruby
+HUGO_CMD = /usr/bin/hugo
+.else
+.error Unsupported Platform, stopping make
+.endif
+
HUGO_ARGS?= --verbose --minify
ASCIIDOCTOR_CMD= ${LOCALBASE}/bin/asciidoctor
ASCIIDOCTORPDF_CMD= ${LOCALBASE}/bin/asciidoctor-pdf
+ROUGE_CMD= ${LOCALBASE}/bin/rougify
+.if !exists(${ASCIIDOCTOR_CMD}) || !exists(${ASCIIDOCTORPDF_CMD}) || !exists(${ROUGE_CMD})
+.error Please install asciidoctor, asciidoctor-pdf, or rouge via rubygem
+.endif
SED_CMD = /usr/bin/sed
.if defined(DOC_LANG) && !empty(DOC_LANG)
LANGUAGES= ${DOC_LANG:S/,/ /g}
diff --git a/website/Makefile b/website/Makefile
--- a/website/Makefile
+++ b/website/Makefile
@@ -18,8 +18,18 @@
# List of all languages we have content for
ALL_LANGUAGES= de el en es fr hu it ja nl ru tr zh-cn zh-tw
+.if ${OS} == "FreeBSD"
PYTHON_CMD = /usr/local/bin/python3
HUGO_CMD = /usr/local/bin/hugo
+.elif ${OS} == "Darwin"
+PYTHON_CMD = /usr/bin/python3
+HUGO_CMD = /usr/local/bin/hugo
+.elif ${OS} == "Linux"
+PYTHON_CMD = /usr/bin/python3
+HUGO_CMD = /usr/bin/hugo
+.else
+.error Unsupported Platform, stopping make
+.endif
HUGO_ARGS?= --verbose
RUBYLIB = ../shared/lib
.export RUBYLIB
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 7, 11:06 AM (15 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42279552
Default Alt Text
D31919.1796641576.diff (1 KB)
Attached To
Mode
D31919: Finiding hugo, python, asciidoctor, asciidoctor-pdf, rougify in different platform so users do not need to create symbolic links manually
Attached
Detach File
Event Timeline