diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2002-02-10 22:05:13 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2002-02-10 22:05:13 +0000 |
commit | bac6b91b50ab565a15bd8f1e1ea6198962ddefae (patch) | |
tree | 0ce74c4974150f73077e9a6f28f776e8ff4c5239 | |
parent | 269bf639acb6cd50d1bdc606492b55ba85424365 (diff) | |
download | doc-bac6b91b50ab565a15bd8f1e1ea6198962ddefae.tar.gz doc-bac6b91b50ab565a15bd8f1e1ea6198962ddefae.zip |
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
Notes
Notes:
svn path=/head/; revision=12147
-rw-r--r-- | share/mk/doc.install.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/doc.install.mk b/share/mk/doc.install.mk index 67e1c61d43..52367afd27 100644 --- a/share/mk/doc.install.mk +++ b/share/mk/doc.install.mk @@ -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 |