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