For section 1, for example, that directory is usually either /usr/man/cat1 or /usr/
share/man/cat1. The appropriate directories are usually predefined for you in your devtools/
OS file. In the rare event that you wish to base your formatted directories elsewhere, you
can define different directories using confMANROOT and one of three confMANdigit macros. For
example, consider this method of moving your previously formatted manuals to /usr/local/
man:
define(`confMANROOT??, `/usr/local/man/cat??)
The confMANdigit and confMANROOT macros are used when the manual pages are installed.
Here, using newaliases.1 as the example, the formatted manuals are copied with install(1):
${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} newaliases.${MAN1SRC} \
${MAN1}/newaliases.${MAN1EXT}
The directory ${MANdigit} is a concatenation of the confMANROOT macro and a confMANdigit
macro. If, for another example, you want all manuals to go in a single directory, you might
do something like this:
define(`confMANROOT??, `/usr/local/manuals??)
define(`confMAN1??, `??)
define(`confMAN4??, `??)
* Due to an omission in V8.9, these can be redefined only as of V8.9.1.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
2.7 Build m4 Macro Reference | 87
define(`confMAN5??, `??)
define(`confMAN8??, `??)
Note that confMAN1, confMAN4, confMAN5, and confMAN8 can also be full pathnames if you set
confMANROOT to nil.
Pages:
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179