Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109822025
D30161.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30161.diff
View Options
diff --git a/documentation/Makefile b/documentation/Makefile
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -15,12 +15,19 @@
MAINTAINER=carlavilla@FreeBSD.org
-PYTHON_CMD = /usr/local/bin/python3
-HUGO_CMD = /usr/local/bin/hugo
+LOCALBASE?= /usr/local
+
+PYTHON_CMD = ${LOCALBASE}/bin/python3
+HUGO_CMD = ${LOCALBASE}/bin/hugo
LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr
RUBYLIB = ../shared/lib
.export RUBYLIB
+RUN_DEPENDS= ${PYTHON_CMD} \
+ ${HUGO_CMD} \
+ ${LOCALBASE}/bin/asciidoctor \
+ ${LOCALBASE}/bin/rougify
+
.ifndef HOSTNAME
.HOST+=localhost
.else
@@ -29,12 +36,20 @@
.ORDER: all run
+.ORDER: requirements
.ORDER: starting-message generate-books-toc
.ORDER: starting-message build
.ORDER: generate-books-toc build
-all: starting-message generate-books-toc build
-run: starting-message generate-books-toc run-local
+all: requirements starting-message generate-books-toc build
+run: requirements starting-message generate-books-toc run-local
+
+requirements:
+.for dep in ${RUN_DEPENDS}
+.if !exists(${dep})
+ @(echo ${dep} not found, please run 'pkg install docproj'; exit 1)
+.endif
+.endfor
starting-message: .PHONY
@echo ---------------------------------------------------------------
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 11:48 PM (8 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16585443
Default Alt Text
D30161.diff (1 KB)
Attached To
Mode
D30161: documentation/Makefile: add requirements target
Attached
Detach File
Event Timeline
Log In to Comment