Add new flag to .cflags to enable hyphenation without looking at
[s-roff.git] / Makefile.in
blob0aee2609f73315f0bc42220a23123d9a3624b083
1 # Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006
2 # Free Software Foundation, Inc.
3 # Written by James Clark (jjc@jclark.com)
4 #
5 # This file is part of groff.
6 #
7 # groff is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation; either version 2, or (at your option) any later
10 # version.
12 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with groff; see the file COPYING. If not, write to the Free Software
19 # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
21 SHELL=@SHELL@
23 srcdir=@srcdir@
24 top_srcdir=@abs_top_srcdir@
25 VPATH=@srcdir@
26 top_builddir=@abs_top_builddir@
28 # `HOST' is the canonical host specification,
29 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
30 # or
31 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
32 HOST=@host@
34 # `RT_SEP' is the operating system's native PATH SEPARATOR CHAR, which
35 # is to be used in runtime PATHs compiled into groff executables.
36 RT_SEP=@GROFF_PATH_SEPARATOR@
38 # `SH_SEP' is a alternative PATH SEPARATOR CHAR, to be used in shell
39 # scripts and makefile rules; it may be the same as `RT_SEP', but,
40 # particularly in some Microsoft environments, it may differ.
41 SH_SEP=@PATH_SEPARATOR@
43 # `GLIBC21' is yes if the host operating system uses GNU libc 2.1 or newer,
44 # otherwise no.
45 GLIBC21=@GLIBC21@
47 version=`cat $(top_srcdir)/VERSION`
48 # No additional number if revision is zero.
49 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
51 # Define `page' to be letter if your PostScript printer uses 8.5x11
52 # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
53 # world).
54 PAGE=@PAGE@
56 # The name of the ghostscript program. Normally, gs, on GNU/Linux
57 # but it might be different on MS-DOS/MS-WIN32 systems.
58 GHOSTSCRIPT=@GHOSTSCRIPT@
60 # `ALT_GHOSTSCRIPT_PROGS' specifies a list alternative names,
61 # which can be tried if `GHOSTSCRIPT' cannot be found at run time.
62 ALT_GHOSTSCRIPT_PROGS=@ALT_GHOSTSCRIPT_PROGS@
64 # Similarly, `ALT_AWK_PROGS' specifies a list of alternative names,
65 # which can be tried at run time, to identify the awk program.
66 ALT_AWK_PROGS=@ALT_AWK_PROGS@
68 # Normally the Postscript driver, grops, produces output that conforms
69 # to version 3.0 of the Adobe Document Structuring Conventions.
70 # Unfortunately some spoolers and previewers can't handle such output.
71 # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
72 # make its output acceptable to such programs. This variable controls
73 # only the default behaviour of grops; the behaviour can be changed at
74 # runtime by the grops -b option (and so by groff -P-b).
75 # Use a value of 0 if your spoolers and previewers are able to handle
76 # conforming PostScript correctly.
77 # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
78 # this is needed for early versions of TranScript that get confused by
79 # anything between the %%EndProlog line and the first %%Page: comment.
80 # Add 2 if lines in included files beginning with %! should be
81 # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
82 # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
83 # stripped out of included files; this is needed for spoolers that
84 # don't understand the %%{Begin,End}Document comments. I suspect this
85 # includes early versions of TranScript.
86 # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
87 # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
88 # with a printer that requires page reversal.
89 BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
91 # `DEVICE' is the default device.
92 DEVICE=ps
94 # `XDEVDIRS' is either `font/devX{75,100}{,-12}' or empty.
95 XDEVDIRS=@XDEVDIRS@
97 # `XPROGDIRS' is either `src/devices/xditview src/utils/xtotroff' or empty.
98 XPROGDIRS=@XPROGDIRS@
100 # `XLIBDIRS' is either `src/libs/libxutil' or empty.
101 XLIBDIRS=@XLIBDIRS@
103 # `TTYDEVDIRS' is either `font/devascii font/devlatin1' (for
104 # ASCII) or `font/devcp1047' (for EBCDIC) plus font/devutf8.
105 TTYDEVDIRS=@TTYDEVDIRS@ font/devutf8
107 # `OTHERDEVDIRS' is either `font/devlj4 font/devlbp' (for ASCII) or
108 # empty (for EBCDIC).
109 OTHERDEVDIRS=@OTHERDEVDIRS@
111 # `PSPRINT' is the command to use for printing a PostScript file,
112 # for example `lpr'.
113 PSPRINT=@PSPRINT@
115 # `DVIPRINT' is the command to use for printing a TeX dvi file,
116 # for example `lpr -d'.
117 DVIPRINT=@DVIPRINT@
119 # Prefix for names of programs that have Unix counterparts.
120 # For example, if `g' is `g' then troff will be installed as
121 # gtroff. This doesn't affect programs like grops or groff that have
122 # no Unix counterparts. Note that the groff versions of eqn and tbl
123 # will not work with Unix troff.
124 g=@g@
126 # Common prefix for installation directories.
127 # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
128 # This must already exist when you do make install.
129 prefix=@prefix@
130 exec_prefix=@exec_prefix@
132 # `bindir' says where to install executables.
133 bindir=@bindir@
135 # `libdir' says where to install platform-dependent data.
136 libdir=@libdir@
137 libprogramdir=$(libdir)/groff
139 # `datasubdir' says where to install platform-independent data files.
140 datadir=@datadir@
141 dataprogramdir=$(datadir)/groff
142 datasubdir=$(dataprogramdir)/$(version)$(revision)
144 # `infodir' says where to install info files.
145 infodir=@infodir@
147 # `docdir' says where to install documentation files.
148 docdir=$(datadir)/doc/groff/$(version)$(revision)
150 # `exampledir' says where to install example files.
151 exampledir=$(docdir)/examples
153 # `htmldocdir' says where to install documentation in HTML format.
154 htmldocdir=$(docdir)/html
156 # `pdfdocdir' says where to install documentation in PDF format.
157 pdfdocdir=$(docdir)/pdf
159 # `fontdir' says where to install dev*/*.
160 fontdir=$(datasubdir)/font
162 # `localfontdir' says where local fonts will be installed (as dev*/*).
163 localfontdir=$(dataprogramdir)/site-font
165 # `legacyfontdir' is for compatibility with non-GNU troff.
166 legacyfontdir=/usr/lib/font
168 # `fontpath' says where to look for dev*/*.
169 fontpath=$(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
171 # `tmacdir' says where to install macros.
172 tmacdir=$(datasubdir)/tmac
174 # `systemtmacdir' says where to install platform-dependent macros.
175 systemtmacdir=$(libprogramdir)/site-tmac
177 # `localtmacdir' says where local files will be installed.
178 localtmacdir=$(dataprogramdir)/site-tmac
180 # `appresdir' says where to install the application resource file for
181 # gxditview.
182 appresdir=@appresdir@
184 # `tmacpath' says where to look for macro files.
185 # The current directory will be prepended in unsafe mode only; the home
186 # directory will be always added.
187 # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
188 # current nor in the home directory.
189 tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
191 # `sys_tmac_prefix' is prefix (if any) for system macro packages.
192 sys_tmac_prefix=@sys_tmac_prefix@
194 # `pnmtops_nosetpage' is the command to be run to generate an eps
195 # file. Some versions of pnmtops provide the -nosetpage option.
196 # We detect this and use it if present.
197 pnmtops_nosetpage=@pnmtops_nosetpage@
199 # `tmac_wrap' is list of system macro packages that should be made
200 # available to groff by creating a corresponding macro package
201 # in the groff macro directory that references the system macro
202 # package.
203 tmac_wrap=@tmac_wrap@
205 # If there is a groff version of a macro package listed in $(tmac_wrap),
206 # then the groff version will be installed with a prefix of this.
207 # Don't make this empty.
208 tmac_prefix=g
210 # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
211 tmac_m_prefix=\
212 `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
213 # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
214 tmac_s_prefix=\
215 `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
216 # The groff -man macros will be available as -m$(tmac_an_prefix)an.
217 tmac_an_prefix=\
218 `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
220 # Extension to be used for refer index files. Index files are not
221 # sharable between different architectures, so you might want to use
222 # different suffixes for different architectures. Choose an extension
223 # that doesn't conflict with refer or any other indexing program.
224 indexext=.i
226 # Directory containing the default index for refer.
227 indexdir=/usr/dict/papers
229 # The filename (without suffix) of the default index for refer.
230 indexname=Ind
232 # common_words_file is a file containing a list of common words.
233 # If your system provides /usr/lib/eign it will be copied onto this,
234 # otherwise the supplied eign file will be used.
235 common_words_file=$(datasubdir)/eign
237 # `manroot' is the root of the man page directory tree.
238 mandir=@mandir@
239 manroot=$(mandir)
241 # `man1ext' is the man section for user commands.
242 man1ext=1
243 man1dir=$(manroot)/man$(man1ext)
245 # `man5ext' is the man section for file formats.
246 man5ext=5
247 man5dir=$(manroot)/man$(man5ext)
249 # `man7ext' is the man section for macros.
250 man7ext=7
251 man7dir=$(manroot)/man$(man7ext)
253 # The configure script checks whether all necessary utility programs for
254 # grohtml are available -- only then we can build the HTML documentation.
255 make_html=@make_html@
256 make_install_html=@make_install_html@
258 # The configure script also checks whether all necessary utility programs
259 # for pdfroff are available -- only then we can build PDF documentation.
260 make_pdfdoc=@make_pdfdoc@
261 make_install_pdfdoc=@make_install_pdfdoc@
263 # All the previous installation directories, when used, are prefixed with
264 # $(DESTDIR) during install and uninstall, to support staged installations.
266 # DEFINES should include the following:
268 # -DWORDS_BIGENDIAN if your target platform is big-endian
269 # -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
271 # -DHAVE_DIRECT_H if you have <direct.h>
272 # -DHAVE_DIRENT_H if you have <dirent.h>
273 # -DHAVE_CC_INTTYPES_H if you have a C++ <inttypes.h>
274 # -DHAVE_PROCESS_H if you have <process.h>
275 # -DHAVE_LIMITS_H if you have <limits.h>
276 # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
277 # -DHAVE_MATH_H if you have <math.h>
278 # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
279 # -DHAVE_STDDEF_H if you have <stddef.h>
280 # -DHAVE_STDLIB_H if you have <stdlib.h>
281 # -DHAVE_STRING_H if you have <string.h>
282 # -DHAVE_STRINGS_H if you have <strings.h>
283 # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
284 # -DHAVE_SYS_STAT_H if you have <sys/stat.h>
285 # -DHAVE_SYS_TIME_H if you have <sys/time.h>
286 # -DHAVE_SYS_TYPES_H if you have <sys/types.h>
287 # -DHAVE_UNISTD_H if you have <unistd.h>
289 # -DHAVE_FMOD if you have fmod()
290 # -DHAVE_GETCWD if you have getcwd()
291 # -DHAVE_GETTIMEOFDAY if you have gettimeofday()
292 # -DHAVE_ICONV if you have iconv()
293 # -DHAVE_ISATTY if you have isatty()
294 # -DHAVE_KILL if you have kill()
295 # -DHAVE_LANGINFO_CODESET if you have nl_langinfo()
296 # -DHAVE_MKSTEMP if you have mkstemp()
297 # -DHAVE_MMAP if you have mmap()
298 # -DHAVE_PUTENV if you have putenv()
299 # -DHAVE_RENAME if you have rename()
300 # -DHAVE_SETLOCALE if you have setlocale()
301 # -DHAVE_SNPRINTF if you have snprintf()
302 # -DHAVE_STRCASECMP if you have strcasecmp()
303 # -DHAVE_STRNCASECMP if you have strncasecmp()
304 # -DHAVE_STRERROR if you have strerror()
305 # -DHAVE_STRSEP if you have strsep()
306 # -DHAVE_STRTOL if you have strtol()
307 # -DHAVE_VSNPRINTF if you have vsnprintf()
309 # -DNEED_DECLARATION_GETTIMEOFTODAY
310 # if your C++ <sys/time.h> doesn't declare
311 # gettimeofday()
312 # -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
313 # -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
314 # -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
315 # -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare
316 # putenv()
317 # -DNEED_DECLARATION_RAND if your C++ <stdlib.h> doesn't declare rand()
318 # -DNEED_DECLARATION_SNPRINTF if your C++ <stdio.h> doesn't declare
319 # snprintf()
320 # -DNEED_DECLARATION_SRAND if your C++ <stdlib.h> doesn't declare srand()
321 # -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
322 # strcasecmp()
323 # -DNEED_DECLARATION_STRNCASECMP
324 # if your C++ <string.h> doesn't declare
325 # strncasecmp()
326 # -DNEED_DECLARATION_VFPRINTF if your C++ <stdio.h> doesn't declare
327 # vfprintf()
328 # -DNEED_DECLARATION_VSNPRINTF if your C++ <stdio.h> doesn't declare
329 # vsnprintf()
331 # -DHAVE_DECL_GETC_UNLOCKED if you have getc_unlocked()
332 # -DHAVE_DECL_SYS_SIGLIST if you have sys_siglist[]
334 # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
335 # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
336 # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
337 # <stdio.h>
338 # -DICONV_CONST=const if declaration of iconv() needs const
339 # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
340 # -DRETSIGTYPE=int if signal handlers return int not void
341 # -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
343 # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
344 # wait() indicates whether a core image was
345 # produced for a process that was terminated
346 # by a signal
348 # -Duintmax_t=<value> define to `unsigned long' or `unsigned long
349 # long' if <inttypes.h> does not exist
351 # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
352 # (Reiser) preprocessor
353 # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
355 # -DPAGE=A4 if the the printer's page size is A4
356 # -DGHOSTSCRIPT=gs the name (and directory if required) of the
357 # ghostscript program
359 DEFINES=@DEFS@
361 # Include
363 # {fmod,getcwd,mkstemp,putenv,snprintf,strcasecmp,
364 # strerror,strncasecmp,strtol}.$(OBJEXT)
366 # in LIBOBJS if your C library is missing the corresponding function.
367 # vsnprintf is defined in the snprintf.$(OBJEXT) module.
368 LIBOBJS=@LIBOBJS@
370 # `CCC' is the compiler for C++ (.cpp) files.
371 CCC=@CXX@
372 CC=@CC@
373 # CCDEFINES are definitions for C++ compilations.
374 CCDEFINES=$(DEFINES)
375 # CDEFINES are definitions for C compilations.
376 CDEFINES=$(DEFINES)
378 CCFLAGS=@CXXFLAGS@
379 CFLAGS=@CFLAGS@
380 CPPFLAGS=@CPPFLAGS@
381 LDFLAGS=@LDFLAGS@
383 X_CFLAGS=@X_CFLAGS@
384 X_LIBS=@X_LIBS@
385 X_EXTRA_LIBS=@X_EXTRA_LIBS@
386 X_PRE_LIBS=@X_PRE_LIBS@
388 YACC=@YACC@
389 YACCFLAGS=-v
391 EGREP=@EGREP@
393 MAKEINFO=@MAKEINFO@
395 EXEEXT=@EXEEXT@
396 OBJEXT=@OBJEXT@
397 # a simple heuristic assumption
398 LIBEXT=`case $(OBJEXT) in obj) echo lib;; *) echo a;; esac`
399 LIBS=@LIBS@
400 LIBM=@LIBM@
401 LIBICONV=@LIBICONV@
402 RANLIB=@RANLIB@
403 INSTALL=@INSTALL@
404 INSTALL_PROGRAM=@INSTALL_PROGRAM@
405 INSTALL_SCRIPT=@INSTALL_SCRIPT@
406 INSTALL_DATA=@INSTALL_DATA@
407 INSTALL_INFO=@INSTALL_INFO@
408 LN_S=@LN_S@
409 AR=ar
410 ETAGS=etags
411 ETAGSFLAGS=
412 # Flag that tells etags to assume C++.
413 ETAGSCCFLAG=-C
414 # Full path to perl.
415 PERLPATH=@PERLPATH@
416 # Sed command with which to edit sh scripts.
417 SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
418 # Sed script to deal with OS dependencies in sh scripts.
419 SH_DEPS_SED_SCRIPT=$(top_builddir)/arch/misc/shdeps.sed
421 # The program to create directory hierarchies.
422 mkinstalldirs= $(SHELL) $(top_srcdir)/mkinstalldirs
424 PURIFY=purify
425 PURIFYCCFLAGS=
426 #PURIFYCCFLAGS=-g++=yes \
427 # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
429 # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
430 # copy of $(MDEFINES) when making individual directories; this could
431 # cause the argument list to become too long on some systems.
432 MDEFINES= \
433 "ALT_AWK_PROGS=$(ALT_AWK_PROGS)" \
434 "ALT_GHOSTSCRIPT_PROGS=$(ALT_GHOSTSCRIPT_PROGS)" \
435 "AR=$(AR)" \
436 "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
437 "CC=$(CC)" \
438 "CCC=$(CCC)" \
439 "CCDEFINES=$(CCDEFINES)" \
440 "CCFLAGS=$(CCFLAGS)" \
441 "CDEFINES=$(CDEFINES)" \
442 "CFLAGS=$(CFLAGS)" \
443 "CPPFLAGS=$(CPPFLAGS)" \
444 "DEVICE=$(DEVICE)" \
445 "DVIPRINT=$(DVIPRINT)" \
446 "EGREP=$(EGREP)" \
447 "ETAGS=$(ETAGS)" \
448 "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
449 "ETAGSFLAGS=$(ETAGSFLAGS)" \
450 "EXEEXT=$(EXEEXT)" \
451 "GLIBC21=$(GLIBC21)" \
452 "HOST=$(HOST)" \
453 "INSTALL_DATA=$(INSTALL_DATA)" \
454 "INSTALL_INFO=$(INSTALL_INFO)" \
455 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
456 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
457 "LDFLAGS=$(LDFLAGS)" \
458 "LIBEXT=$(LIBEXT)" \
459 "LIBICONV=$(LIBICONV)" \
460 "LIBM=$(LIBM)" \
461 "LIBOBJS=$(LIBOBJS)" \
462 "LIBS=$(LIBS)" \
463 "MAKEINFO=$(MAKEINFO)" \
464 "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
465 "OBJEXT=$(OBJEXT)" \
466 "OTHERDEVDIRS=$(OTHERDEVDIRS)" \
467 "PAGE=$(PAGE)" \
468 "GHOSTSCRIPT=$(GHOSTSCRIPT)" \
469 "PERLPATH=$(PERLPATH)" \
470 "PSPRINT=$(PSPRINT)" \
471 "PURIFY=$(PURIFY)" \
472 "PURIFYCCFLAGS=$(PURIFYCCFLAGS)" \
473 "RANLIB=$(RANLIB)" \
474 "RT_SEP=$(RT_SEP)" \
475 "SH_SEP=$(SH_SEP)" \
476 "SHELL=$(SHELL)" \
477 "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
478 "SH_DEPS_SED_SCRIPT=$(SH_DEPS_SED_SCRIPT)" \
479 "TTYDEVDIRS=$(TTYDEVDIRS)" \
480 "XDEVDIRS=$(XDEVDIRS)" \
481 "XLIBDIRS=$(XLIBDIRS)" \
482 "XPROGDIRS=$(XPROGDIRS)" \
483 "X_CFLAGS=$(X_CFLAGS)" \
484 "X_LIBS=$(X_LIBS)" \
485 "X_EXTRA_LIBS=$(X_EXTRA_LIBS)" \
486 "X_PRE_LIBS=$(X_PRE_LIBS)" \
487 "YACC=$(YACC)" \
488 "YACCFLAGS=$(YACCFLAGS)" \
489 "appresdir=$(appresdir)" \
490 "bindir=$(bindir)" \
491 "common_words_file=$(common_words_file)" \
492 "datadir=$(datadir)" \
493 "dataprogramdir=$(dataprogramdir)" \
494 "datasubdir=$(datasubdir)" \
495 "docdir=$(docdir)" \
496 "exampledir=$(exampledir)" \
497 "exec_prefix=$(exec_prefix)" \
498 "fontdir=$(fontdir)" \
499 "fontpath=$(fontpath)" \
500 "g=$(g)" \
501 "htmldocdir=$(htmldocdir)" \
502 "pdfdocdir=$(pdfdocdir)" \
503 "indexdir=$(indexdir)" \
504 "indexext=$(indexext)" \
505 "indexname=$(indexname)" \
506 "infodir=$(infodir)" \
507 "legacyfontdir=$(legacyfontdir)" \
508 "libdir=$(libdir)" \
509 "libprogramdir=$(libprogramdir)" \
510 "localfontdir=$(localfontdir)" \
511 "localtmacdir=$(localtmacdir)" \
512 "make_html=$(make_html)" \
513 "make_install_html=$(make_install_html)" \
514 "make_pdfdoc=$(make_pdfdoc)" \
515 "make_install_pdfdoc=$(make_install_pdfdoc)" \
516 "man1dir=$(man1dir)" \
517 "man1ext=$(man1ext)" \
518 "man5dir=$(man5dir)" \
519 "man5ext=$(man5ext)" \
520 "man7dir=$(man7dir)" \
521 "man7ext=$(man7ext)" \
522 "manroot=$(manroot)" \
523 "mkinstalldirs=$(mkinstalldirs)" \
524 "prefix=$(prefix)" \
525 "revision=$(revision)" \
526 "sys_tmac_prefix=$(sys_tmac_prefix)" \
527 "pnmtops_nosetpage=$(pnmtops_nosetpage)" \
528 "systemtmacdir=$(systemtmacdir)" \
529 "tmac_an_prefix=$(tmac_an_prefix)" \
530 "tmac_m_prefix=$(tmac_m_prefix)" \
531 "tmac_s_prefix=$(tmac_s_prefix)" \
532 "tmac_wrap=$(tmac_wrap)" \
533 "tmacdir=$(tmacdir)" \
534 "tmacpath=$(tmacpath)" \
535 "top_builddir=$(top_builddir)" \
536 "top_srcdir=$(top_srcdir)" \
537 "version=$(version)"
539 MAKE_K_FLAG=`case "$(MAKEFLAGS)" in *k*) echo ' -k ';; esac`
541 INCDIRS=src/include
542 LIBDIRS=\
543 src/libs/libgroff \
544 src/libs/libdriver \
545 src/libs/libbib \
546 $(XLIBDIRS)
547 CCPROGDIRS=\
548 src/roff/groff \
549 src/roff/troff \
550 src/preproc/preconv \
551 src/preproc/tbl \
552 src/preproc/pic \
553 src/preproc/eqn \
554 src/preproc/grn \
555 src/preproc/refer \
556 src/preproc/soelim \
557 src/preproc/html \
558 src/devices/grops \
559 src/devices/grotty \
560 src/devices/grodvi \
561 src/devices/grolj4 \
562 src/devices/grohtml \
563 src/devices/grolbp \
564 src/utils/tfmtodit \
565 src/utils/hpftodit \
566 src/utils/lookbib \
567 src/utils/indxbib \
568 src/utils/lkbib \
569 src/utils/addftinfo
570 CPROGDIRS=\
571 src/utils/pfbtops
572 PROGDEPDIRS=arch/misc
573 PROGDIRS=$(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) $(XPROGDIRS)
574 DEVDIRS=\
575 font/devps \
576 font/devdvi \
577 font/devhtml
578 ALLTTYDEVDIRS=\
579 font/devascii \
580 font/devlatin1 \
581 font/devutf8 \
582 font/devcp1047
583 # `doc' must be processed before `contrib/pdfmark'.
584 OTHERDIRS=\
585 man \
586 tmac \
587 src/utils/afmtodit \
588 src/roff/grog \
589 src/roff/nroff \
590 doc \
591 contrib/mm \
592 contrib/pic2graph \
593 contrib/eqn2graph \
594 contrib/grap2graph \
595 contrib/groffer \
596 contrib/mom \
597 contrib/hdtbl \
598 contrib/pdfmark \
599 contrib/gdiffmk
600 ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
601 $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
602 EXTRADIRS=\
603 font/devps/generate \
604 font/devdvi/generate \
605 font/devlj4/generate \
607 NOMAKEDIRS=\
608 arch/djgpp \
609 contrib/hdtbl/examples \
610 contrib/mm/examples \
611 contrib/mm/mm \
612 contrib/mom/examples \
613 contrib/mom/momdoc \
614 contrib/gdiffmk/tests \
615 src/libs/snprintf
616 DISTDIRS=\
617 $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) \
618 $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS)
619 TARGETS=all install install_bin install_data clean distclean mostlyclean \
620 realclean extraclean distfiles TAGS depend uninstall_sub
622 # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
623 # where Make needs to be case-sensitive to find files like BI and VERSION.
624 ENVSETUP=\
625 if test -f $(srcdir)/makefile.ccpg* && \
626 test -f $(srcdir)/Makefile.ccpg*; then \
627 FNCASE=y; export FNCASE; \
628 else :; \
631 do=all
632 dodirs=$(ALLDIRS) dot
633 # Default target for subdir_Makefile
634 subdir=src/roff/troff
637 $(TARGETS):
638 @$(ENVSETUP); $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) do=$@ $(dodirs)
640 dot: FORCE
641 @$(ENVSETUP); \
642 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
643 -f $(top_srcdir)/Makefile.comm \
644 -f $(top_srcdir)/Makefile.sub $(do)
646 $(LIBDIRS): FORCE $(INCDIRS) $(PROGDEPDIRS)
647 @$(ENVSETUP); \
648 if test $(srcdir) = .; then \
649 srcdir=.; \
650 else \
651 srcdir=`cd $(srcdir); pwd`/$@; \
652 fi; \
653 test -d $@ || $(mkinstalldirs) $@; \
654 cd $@; \
655 test -f Makefile.dep || touch Makefile.dep; \
656 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
657 -f $(top_srcdir)/Makefile.comm \
658 -f $$srcdir/Makefile.sub \
659 -f $(top_srcdir)/Makefile.lib \
660 -f Makefile.dep $(do)
662 $(CPROGDIRS) $(XPROGDIRS): FORCE $(LIBDIRS)
663 @$(ENVSETUP); \
664 if test $(srcdir) = .; then \
665 srcdir=.; \
666 else \
667 srcdir=`cd $(srcdir); pwd`/$@; \
668 fi; \
669 test -d $@ || $(mkinstalldirs) $@; \
670 cd $@; \
671 test -f Makefile.dep || touch Makefile.dep; \
672 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
673 -f $(top_srcdir)/Makefile.comm \
674 -f $$srcdir/Makefile.sub \
675 -f $(top_srcdir)/Makefile.cpg \
676 -f Makefile.dep $(do)
678 $(CCPROGDIRS): FORCE $(LIBDIRS)
679 @$(ENVSETUP); \
680 if test $(srcdir) = .; then \
681 srcdir=.; \
682 else \
683 srcdir=`cd $(srcdir); pwd`/$@; \
684 fi; \
685 test -d $@ || $(mkinstalldirs) $@; \
686 cd $@; \
687 test -f Makefile.dep || touch Makefile.dep; \
688 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
689 -f $(top_srcdir)/Makefile.comm \
690 -f $$srcdir/Makefile.sub \
691 -f $(top_srcdir)/Makefile.ccpg \
692 -f Makefile.dep $(do)
694 $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS)
695 @$(ENVSETUP); \
696 if test $(srcdir) = .; then \
697 srcdir=.; \
698 else \
699 srcdir=`cd $(srcdir); pwd`/$@; \
700 fi; \
701 test -d $@ || $(mkinstalldirs) $@; \
702 cd $@; \
703 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
704 -f $(top_srcdir)/Makefile.comm \
705 -f $$srcdir/Makefile.sub \
706 -f $(top_srcdir)/Makefile.dev $(do)
708 $(OTHERDIRS): $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS)
710 $(INCDIRS) $(PROGDEPDIRS) $(OTHERDIRS): FORCE
711 @$(ENVSETUP); \
712 if test $(srcdir) = .; then \
713 srcdir=.; \
714 else \
715 srcdir=`cd $(srcdir); pwd`/$@; \
716 fi; \
717 test -d $@ || $(mkinstalldirs) $@; \
718 cd $@; \
719 $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
720 -f $(top_srcdir)/Makefile.comm \
721 -f $$srcdir/Makefile.sub \
722 -f $(top_srcdir)/Makefile.man $(do)
724 .PHONY: dist
725 dist:
726 -rm -fr tmp
727 rm -f groff-$(version)$(revision).tar.gz
728 mkdir tmp
729 for d in $(DISTDIRS); do \
730 $(mkinstalldirs) tmp/$$d; \
731 done
732 srcdir=`cd $(srcdir); pwd`; \
733 cd tmp; \
734 $(LN_S) ../Makefile .; \
735 $(LN_S) $$srcdir/* . 2>/dev/null || true; \
736 rm -rf CVS; \
737 for d in $(DISTDIRS); do \
738 (cd $$d; \
739 $(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
740 rm -rf CVS || true); \
741 done; \
742 $(MAKE) srcdir=. VPATH=. distfiles; \
743 $(MAKE) srcdir=. VPATH=. extraclean; \
744 for d in $(EXTRADIRS); do \
745 (cd $$d; \
746 if test -f Makefile; then \
747 $(MAKE) extraclean; \
748 else \
749 $(MAKE) -f $(top_builddir)/$$d/Makefile extraclean; \
750 fi); \
751 done; \
752 rm -f Makefile; \
753 $(LN_S) $$srcdir/Makefile.init Makefile
754 mv tmp groff-$(version)$(revision)
755 tar cfh - groff-$(version)$(revision) | \
756 gzip -c >groff-$(version)$(revision).tar.gz
757 rm -fr groff-$(version)$(revision)
759 # $(PROGDIRS): libgroff
760 # grops grotty grodvi: libdriver
761 # refer lookbib indxbib lkbib: libbib
762 # $(LIBDIRS) $(PROGDIRS): include
764 .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
766 # Create a Makefile in $(subdir). This is useful for development since it
767 # avoids running make recursively.
768 subdir_Makefile: Makefile.cfg
769 $(MAKE) do=Makefile $(subdir)
771 Makefile.cfg: Makefile
772 >Makefile.cfg
773 for var in $(MDEFINES); do \
774 echo "$$var" >>Makefile.cfg; \
775 done
777 Makefile: Makefile.in
778 $(SHELL) config.status
780 .PHONY: uninstall
781 uninstall: uninstall_sub uninstall_dirs
783 .PHONY: uninstall_dirs
784 uninstall_dirs:
785 # Use `rmdir' here so that the directories are only removed if they are empty.
786 -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
787 $(tmacdir) $(systemtmacdir) $(localtmacdir) \
788 $(fontdir) $(localfontdir) $(bindir) \
789 $(datasubdir) $(dataprogramdir) $(infodir) \
790 $(exampledir) $(htmldocdir) $(pdfdocdir) $(docdir) \
791 $(libprogramdir) $(libdir) \
792 $(datadir)/doc/groff $(datadir)/doc $(datadir) 2>/dev/null || :
794 .PHONY: check docheck
795 check: site.exp docheck
797 docheck:
798 if $(SHELL) -c "runtest --version" > /dev/null 2>&1; then \
799 runtest; \
800 else \
801 echo "WARNING: could not find \`runtest'" 1>&2; \
804 # This snippet has been taken from the automake package.
806 site.exp:
807 @echo "Making a new site.exp file..."
808 @echo "## these variables are automatically generated by make ##" >site.tmp
809 @echo "# Do not edit here. If you wish to override these values" >>site.tmp
810 @echo "# edit the last section" >>site.tmp
811 @echo "set tool groff" >>site.tmp
812 @echo "set srcdir $(srcdir)/testsuite" >>site.tmp
813 @echo "set objdir `pwd`" >> site.tmp
814 @echo "## All variables above are generated by configure. Do not edit! ##" >> site.tmp
815 @test ! -f site.exp \
816 || sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
817 @-rm -f site.bak
818 @test ! -f site.exp || mv site.exp site.bak
819 @mv site.tmp site.exp
821 FORCE:
823 .NOEXPORT: