To determine LANGCODE, we look for a directory named "doc" below
CURDIR. This causes problems when one wants to have multiple doc/ trees checked out at once because it requires every tree to be in a directory called "doc"; i.e., one must have <name-of-tree>/doc/ instead of just <name-of-tree>/ like one can do with src/. Mitigate the pain by making it possible to tell the build infrastructure what the doc prefix is called; this still isn't perfect since it requires
This commit is contained in:
parent
269bf639ac
commit
bac6b91b50
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=12147
1 changed files with 3 additions and 1 deletions
|
@ -112,10 +112,12 @@ INSTALL_DOCS?= \
|
|||
# Liberal default of maximum of 10 directories below to find it.
|
||||
#
|
||||
|
||||
DOC_PREFIX_NAME?= doc
|
||||
|
||||
.if !defined(LANGCODE)
|
||||
LANGCODE:= ${.CURDIR}
|
||||
.for _ in 1 2 3 4 5 6 7 8 9 10
|
||||
.if !(${LANGCODE:H:T} == "doc")
|
||||
.if !(${LANGCODE:H:T} == ${DOC_PREFIX_NAME})
|
||||
LANGCODE:= ${LANGCODE:H}
|
||||
.endif
|
||||
.endfor
|
||||
|
|
Loading…
Reference in a new issue