* src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
[s-roff.git] / Makefile.in
blob6b06de48744f6d96a31a987b0dcafe8c9647673c
1 # Copyright (C) 1989-2000, 2001, 2002, 2003, 2004
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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 SHELL=@SHELL@
23 srcdir=@srcdir@
24 top_srcdir=@abs_top_srcdir@
25 VPATH=@srcdir@
26 top_builddir=@abs_top_builddir@
28 # `RT_SEP' is the operating system's native PATH SEPARATOR CHAR, which
29 # is to be used in runtime PATHs compiled into groff executables.
30 RT_SEP=@GROFF_PATH_SEPARATOR@
32 # `SH_SEP' is a alternative PATH SEPARATOR CHAR, to be used in shell
33 # scripts and makefile rules; it may be the same as `RT_SEP', but,
34 # particularly in some Microsoft environments, it may differ.
35 SH_SEP=@PATH_SEPARATOR@
37 version=`cat $(top_srcdir)/VERSION`
38 # No additional number if revision is zero.
39 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
41 # Define `page' to be letter if your PostScript printer uses 8.5x11
42 # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
43 # world).
44 PAGE=@PAGE@
46 # Normally the Postscript driver, grops, produces output that conforms
47 # to version 3.0 of the Adobe Document Structuring Conventions.
48 # Unfortunately some spoolers and previewers can't handle such output.
49 # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
50 # make its output acceptable to such programs. This variable controls
51 # only the default behaviour of grops; the behaviour can be changed at
52 # runtime by the grops -b option (and so by groff -P-b).
53 # Use a value of 0 if your spoolers and previewers are able to handle
54 # conforming PostScript correctly.
55 # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
56 # this is needed for early versions of TranScript that get confused by
57 # anything between the %%EndProlog line and the first %%Page: comment.
58 # Add 2 if lines in included files beginning with %! should be
59 # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
60 # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
61 # stripped out of included files; this is needed for spoolers that
62 # don't understand the %%{Begin,End}Document comments. I suspect this
63 # includes early versions of TranScript.
64 # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
65 # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
66 # with a printer that requires page reversal.
67 BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
69 # `DEVICE' is the default device.
70 DEVICE=ps
72 # `TTYDEVDIRS' is either `font/devascii font/devlatin1' (for
73 # ASCII) or `font/devcp1047' (for EBCDIC) plus font/devutf8.
74 TTYDEVDIRS=@TTYDEVDIRS@ font/devutf8
76 # `OTHERDEVDIRS' is either `font/devlj4 font/devlbp' (for ASCII) or
77 # empty (for EBCDIC).
78 OTHERDEVDIRS=@OTHERDEVDIRS@
80 # `PSPRINT' is the command to use for printing a PostScript file,
81 # for example `lpr'.
82 PSPRINT=@PSPRINT@
84 # `DVIPRINT' is the command to use for printing a TeX dvi file,
85 # for example `lpr -d'.
86 DVIPRINT=@DVIPRINT@
88 # Prefix for names of programs that have Unix counterparts.
89 # For example, if `g' is `g' then troff will be installed as
90 # gtroff. This doesn't affect programs like grops or groff that have
91 # no Unix counterparts. Note that the groff versions of eqn and tbl
92 # will not work with Unix troff.
93 g=@g@
95 # Common prefix for installation directories.
96 # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
97 # This must already exist when you do make install.
98 prefix=@prefix@
99 exec_prefix=@exec_prefix@
101 # `bindir' says where to install executables.
102 bindir=@bindir@
104 # `libdir' says where to install platform-dependent data.
105 libdir=@libdir@
106 libprogramdir=$(libdir)/groff
108 # `datasubdir' says where to install platform-independent data files.
109 datadir=@datadir@
110 dataprogramdir=$(datadir)/groff
111 datasubdir=$(dataprogramdir)/$(version)$(revision)
113 # `infodir' says where to install info files.
114 infodir=@infodir@
116 # `docdir' says where to install documentation files.
117 docdir=$(datadir)/doc/groff/$(version)$(revision)
119 # `exampledir' says where to install example files.
120 exampledir=$(docdir)/examples
122 # `htmldocdir' says where to install documentation in HTML format.
123 htmldocdir=$(docdir)/html
125 # `fontdir' says where to install dev*/*.
126 fontdir=$(datasubdir)/font
128 # `localfontdir' says where local fonts will be installed (as dev*/*).
129 localfontdir=$(dataprogramdir)/site-font
131 # `legacyfontdir' is for compatibility with non-GNU troff.
132 legacyfontdir=/usr/lib/font
134 # `fontpath' says where to look for dev*/*.
135 fontpath=$(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
137 # `tmacdir' says where to install macros.
138 tmacdir=$(datasubdir)/tmac
140 # `systemtmacdir' says where to install platform-dependent macros.
141 systemtmacdir=$(libprogramdir)/site-tmac
143 # `localtmacdir' says where local files will be installed.
144 localtmacdir=$(dataprogramdir)/site-tmac
146 # `tmacpath' says where to look for macro files.
147 # The current directory will be prepended in unsafe mode only; the home
148 # directory will be always added.
149 # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
150 # current nor in the home directory.
151 tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
153 # `sys_tmac_prefix' is prefix (if any) for system macro packages.
154 sys_tmac_prefix=@sys_tmac_prefix@
156 # `pnmtops_nosetpage' is the command to be run to generate an eps
157 # file. Some versions of pnmtops provide the -nosetpage option.
158 # We detect this and use it if present.
159 pnmtops_nosetpage=@pnmtops_nosetpage@
161 # `tmac_wrap' is list of system macro packages that should be made
162 # available to groff by creating a corresponding macro package
163 # in the groff macro directory that references the system macro
164 # package.
165 tmac_wrap=@tmac_wrap@
167 # If there is a groff version of a macro package listed in $(tmac_wrap),
168 # then the groff version will be installed with a prefix of this.
169 # Don't make this empty.
170 tmac_prefix=g
172 # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
173 tmac_m_prefix=\
174 `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
175 # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
176 tmac_s_prefix=\
177 `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
178 # The groff -man macros will be available as -m$(tmac_an_prefix)an.
179 tmac_an_prefix=\
180 `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
182 # Extension to be used for refer index files. Index files are not
183 # sharable between different architectures, so you might want to use
184 # different suffixes for different architectures. Choose an extension
185 # that doesn't conflict with refer or any other indexing program.
186 indexext=.i
188 # Directory containing the default index for refer.
189 indexdir=/usr/dict/papers
191 # The filename (without suffix) of the default index for refer.
192 indexname=Ind
194 # common_words_file is a file containing a list of common words.
195 # If your system provides /usr/lib/eign it will be copied onto this,
196 # otherwise the supplied eign file will be used.
197 common_words_file=$(datasubdir)/eign
199 # `manroot' is the root of the man page directory tree.
200 mandir=@mandir@
201 manroot=$(mandir)
203 # `man1ext' is the man section for user commands.
204 man1ext=1
205 man1dir=$(manroot)/man$(man1ext)
207 # `man5ext' is the man section for file formats.
208 man5ext=5
209 man5dir=$(manroot)/man$(man5ext)
211 # `man7ext' is the man section for macros.
212 man7ext=7
213 man7dir=$(manroot)/man$(man7ext)
215 # The configure script checks whether all necessary utility programs for
216 # grohtml are available -- only then we can build the HTML documentation.
217 make_html=@make_html@
218 make_install_html=@make_install_html@
220 # DEFINES should include the following:
221 # -DHAVE_MMAP if you have mmap() and <sys/mman.h>
222 # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
223 # -DSYS_SIGLIST_DECLARED if you have sys_siglist[]
224 # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
225 # wait() indicates whether a core image was
226 # produced for a process that was terminated
227 # by a signal
229 # -DHAVE_DIRENT_H if you have <dirent.h>
230 # -DHAVE_LIMITS_H if you have <limits.h>
231 # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
232 # -DHAVE_MATH_H if you have <math.h>
233 # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
234 # -DHAVE_CC_STDINT_H if you have a C++ <stdint.h>
235 # -DHAVE_STDLIB_H if you have <stdlib.h>
236 # -DHAVE_STRING_H if you have <string.h>
237 # -DHAVE_STRINGS_H if you have <strings.h>
238 # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
239 # -DHAVE_SYS_TIME_H if you have <sys/time.h>
240 # -DHAVE_UNISTD_H if you have <unistd.h>
242 # -DHAVE_FMOD if you have fmod()
243 # -DHAVE_GETCWD if you have getcwd()
244 # -DHAVE_GETTIMEOFDAY if you have gettimeofday()
245 # -DHAVE_ISATTY if you have isatty()
246 # -DHAVE_KILL if you have kill()
247 # -DHAVE_MKSTEMP if you have mkstemp()
248 # -DHAVE_MMAP if you have mmap()
249 # -DHAVE_PUTENV if you have putenv()
250 # -DHAVE_RENAME if you have rename()
251 # -DHAVE_SETLOCALE if you have setlocale()
252 # -DHAVE_SNPRINTF if you have snprintf()
253 # -DHAVE_STRCASECMP if you have strcasecmp()
254 # -DHAVE_STRNCASECMP if you have strncasecmp()
255 # -DHAVE_STRERROR if you have strerror()
256 # -DHAVE_STRSEP if you have strsep()
257 # -DHAVE_STRTOL if you have strtol()
258 # -DHAVE_VSNPRINTF if you have vsnprintf()
260 # -DNEED_DECLARATION_GETTIMEOFTODAY
261 # if your C++ <sys/time.h> doesn't declare
262 # gettimeofday()
263 # -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
264 # -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
265 # -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
266 # -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare
267 # putenv()
268 # -DNEED_DECLARATION_RAND if your C++ <stdlib.h> doesn't declare rand()
269 # -DNEED_DECLARATION_SNPRINTF if your C++ <stdio.h> doesn't declare
270 # snprintf()
271 # -DNEED_DECLARATION_SRAND if your C++ <stdlib.h> doesn't declare srand()
272 # -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
273 # strcasecmp()
274 # -DNEED_DECLARATION_STRNCASECMP
275 # if your C++ <string.h> doesn't declare
276 # strncasecmp()
277 # -DNEED_DECLARATION_VFPRINTF if your C++ <stdio.h> doesn't declare
278 # vfprintf()
279 # -DNEED_DECLARATION_VSNPRINTF if your C++ <stdio.h> doesn't declare
280 # vsnprintf()
282 # -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
283 # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
284 # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
285 # <stdio.h>
286 # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
287 # (Reiser) preprocessor
288 # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
289 # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
290 # -DRETSIGTYPE=int if signal handlers return int not void
291 # -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
292 # -DPAGEA4 if the the printer's page size is A4
293 DEFINES=@DEFS@
295 # Include
297 # {fmod,getcwd,mkstemp,putenv,snprintf,strcasecmp,
298 # strerror,strncasecmp,strtol}.$(OBJEXT)
300 # in LIBOBJS if your C library is missing the corresponding function.
301 # vsnprintf is defined in the snprintf.$(OBJEXT) module.
302 LIBOBJS=@LIBOBJS@
304 # `CCC' is the compiler for C++ (.cpp) files.
305 CCC=@CXX@
306 CC=@CC@
307 # CCDEFINES are definitions for C++ compilations.
308 CCDEFINES=$(DEFINES)
309 # CDEFINES are definitions for C compilations.
310 CDEFINES=$(DEFINES)
312 CCFLAGS=@CXXFLAGS@
313 CFLAGS=@CFLAGS@
314 LDFLAGS=@LDFLAGS@
315 YACC=@YACC@
316 YACCFLAGS=-v
318 EXEEXT=@EXEEXT@
319 OBJEXT=@OBJEXT@
320 # a simple heuristic assumption
321 LIBEXT=`case $(OBJEXT) in obj) echo lib;; *) echo a;; esac`
322 LIBS=@LIBS@
323 LIBM=@LIBM@
324 RANLIB=@RANLIB@
325 INSTALL=@INSTALL@
326 INSTALL_PROGRAM=@INSTALL_PROGRAM@
327 INSTALL_SCRIPT=@INSTALL_SCRIPT@
328 INSTALL_DATA=@INSTALL_DATA@
329 INSTALL_INFO=@INSTALL_INFO@
330 LN_S=@LN_S@
331 AR=ar
332 ETAGS=etags
333 ETAGSFLAGS=
334 # Flag that tells etags to assume C++.
335 ETAGSCCFLAG=-C
336 # Full path to perl.
337 PERLPATH=@PERLPATH@
338 # Sed command with which to edit sh scripts.
339 SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
340 # Sed script to deal with OS dependencies in sh scripts.
341 SH_DEPS_SED_SCRIPT=$(top_builddir)/arch/misc/shdeps.sed
343 # The program to create directory hierarchies.
344 mkinstalldirs= $(SHELL) $(top_srcdir)/mkinstalldirs
346 PURIFY=purify
347 PURIFYCCFLAGS=
348 #PURIFYCCFLAGS=-g++=yes \
349 # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
351 # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
352 # copy of $(MDEFINES) when making individual directories; this could
353 # cause the argument list to become too long on some systems.
354 MDEFINES= \
355 "AR=$(AR)" \
356 "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
357 "CC=$(CC)" \
358 "CCC=$(CCC)" \
359 "CCDEFINES=$(CCDEFINES)" \
360 "CCFLAGS=$(CCFLAGS)" \
361 "CDEFINES=$(CDEFINES)" \
362 "CFLAGS=$(CFLAGS)" \
363 "DEVICE=$(DEVICE)" \
364 "DVIPRINT=$(DVIPRINT)" \
365 "ETAGS=$(ETAGS)" \
366 "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
367 "ETAGSFLAGS=$(ETAGSFLAGS)" \
368 "EXEEXT=$(EXEEXT)" \
369 "INSTALL_DATA=$(INSTALL_DATA)" \
370 "INSTALL_INFO=$(INSTALL_INFO)" \
371 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
372 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
373 "LDFLAGS=$(LDFLAGS)" \
374 "LIBEXT=$(LIBEXT)" \
375 "LIBM=$(LIBM)" \
376 "LIBOBJS=$(LIBOBJS)" \
377 "LIBS=$(LIBS)" \
378 "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
379 "OBJEXT=$(OBJEXT)" \
380 "OTHERDEVDIRS=$(OTHERDEVDIRS)" \
381 "PAGE=$(PAGE)" \
382 "PERLPATH=$(PERLPATH)" \
383 "PSPRINT=$(PSPRINT)" \
384 "PURIFY=$(PURIFY)" \
385 "PURIFYCCFLAGS=$(PURIFYCCFLAGS)" \
386 "RANLIB=$(RANLIB)" \
387 "RT_SEP=$(RT_SEP)" \
388 "SH_SEP=$(SH_SEP)" \
389 "SHELL=$(SHELL)" \
390 "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
391 "SH_DEPS_SED_SCRIPT=$(SH_DEPS_SED_SCRIPT)" \
392 "TTYDEVDIRS=$(TTYDEVDIRS)" \
393 "YACC=$(YACC)" \
394 "YACCFLAGS=$(YACCFLAGS)" \
395 "bindir=$(bindir)" \
396 "common_words_file=$(common_words_file)" \
397 "datadir=$(datadir)" \
398 "dataprogramdir=$(dataprogramdir)" \
399 "datasubdir=$(datasubdir)" \
400 "docdir=$(docdir)" \
401 "exampledir=$(exampledir)" \
402 "exec_prefix=$(exec_prefix)" \
403 "fontdir=$(fontdir)" \
404 "fontpath=$(fontpath)" \
405 "g=$(g)" \
406 "htmldocdir=$(htmldocdir)" \
407 "indexdir=$(indexdir)" \
408 "indexext=$(indexext)" \
409 "indexname=$(indexname)" \
410 "infodir=$(infodir)" \
411 "legacyfontdir=$(legacyfontdir)" \
412 "libdir=$(libdir)" \
413 "libprogramdir=$(libprogramdir)" \
414 "localfontdir=$(localfontdir)" \
415 "localtmacdir=$(localtmacdir)" \
416 "make_html=$(make_html)" \
417 "make_install_html=$(make_install_html)" \
418 "man1dir=$(man1dir)" \
419 "man1ext=$(man1ext)" \
420 "man5dir=$(man5dir)" \
421 "man5ext=$(man5ext)" \
422 "man7dir=$(man7dir)" \
423 "man7ext=$(man7ext)" \
424 "manroot=$(manroot)" \
425 "mkinstalldirs=$(mkinstalldirs)" \
426 "prefix=$(prefix)" \
427 "revision=$(revision)" \
428 "sys_tmac_prefix=$(sys_tmac_prefix)" \
429 "pnmtops_nosetpage=$(pnmtops_nosetpage)" \
430 "systemtmacdir=$(systemtmacdir)" \
431 "tmac_an_prefix=$(tmac_an_prefix)" \
432 "tmac_m_prefix=$(tmac_m_prefix)" \
433 "tmac_s_prefix=$(tmac_s_prefix)" \
434 "tmac_wrap=$(tmac_wrap)" \
435 "tmacdir=$(tmacdir)" \
436 "tmacpath=$(tmacpath)" \
437 "top_builddir=$(top_builddir)" \
438 "top_srcdir=$(top_srcdir)" \
439 "version=$(version)"
441 INCDIRS=src/include
442 LIBDIRS=\
443 src/libs/libgroff \
444 src/libs/libdriver \
445 src/libs/libbib
446 CCPROGDIRS=\
447 src/roff/groff \
448 src/roff/troff \
449 src/preproc/tbl \
450 src/preproc/pic \
451 src/preproc/eqn \
452 src/preproc/grn \
453 src/preproc/refer \
454 src/preproc/soelim \
455 src/preproc/html \
456 src/devices/grops \
457 src/devices/grotty \
458 src/devices/grodvi \
459 src/devices/grolj4 \
460 src/devices/grohtml \
461 src/devices/grolbp \
462 src/utils/tfmtodit \
463 src/utils/hpftodit \
464 src/utils/lookbib \
465 src/utils/indxbib \
466 src/utils/lkbib \
467 src/utils/addftinfo
468 CPROGDIRS=src/utils/pfbtops
469 PROGDEPDIRS=arch/misc
470 PROGDIRS=$(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS)
471 DEVDIRS=\
472 font/devps \
473 font/devdvi \
474 font/devX75 \
475 font/devX75-12 \
476 font/devX100 \
477 font/devX100-12 \
478 font/devhtml
479 ALLTTYDEVDIRS=\
480 font/devascii \
481 font/devlatin1 \
482 font/devutf8 \
483 font/devcp1047
484 OTHERDIRS=\
485 man \
486 tmac \
487 src/utils/afmtodit \
488 src/roff/grog \
489 src/roff/nroff \
490 contrib/mm \
491 contrib/pic2graph \
492 contrib/eqn2graph \
493 contrib/grap2graph \
494 contrib/groffer \
495 contrib/mom \
497 ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
498 $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
499 EXTRADIRS=\
500 font/devps/generate \
501 font/devdvi/generate \
502 font/devlj4/generate \
503 src/xditview \
505 NOMAKEDIRS=\
506 arch/djgpp \
507 contrib/mm/examples \
508 contrib/mm/mm \
509 contrib/mom/examples \
510 contrib/mom/momdoc \
511 src/libs/snprintf
512 DISTDIRS=\
513 $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDEVDIRS) \
514 $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS)
515 TARGETS=all install install_bin install_data clean distclean mostlyclean \
516 realclean extraclean distfiles TAGS depend uninstall_sub
518 # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
519 # where Make needs to be case-sensitive to find files like BI and VERSION.
520 ENVSETUP=\
521 if test -f $(srcdir)/makefile.ccpg* && \
522 test -f $(srcdir)/Makefile.ccpg*; then \
523 FNCASE=y; export FNCASE; \
524 else :; \
527 do=all
528 dodirs=$(ALLDIRS) dot
529 # Default target for subdir_Makefile
530 subdir=src/roff/troff
533 $(TARGETS):
534 @$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
536 dot: FORCE
537 @$(ENVSETUP); \
538 $(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
539 -f $(top_srcdir)/Makefile.comm \
540 -f $(top_srcdir)/Makefile.sub $(do)
542 $(LIBDIRS): FORCE
543 @$(ENVSETUP); \
544 if test $(srcdir) = .; then \
545 srcdir=.; \
546 else \
547 srcdir=`cd $(srcdir); pwd`/$@; \
548 fi; \
549 test -d $@ || $(mkinstalldirs) $@; \
550 cd $@; \
551 test -f Makefile.dep || touch Makefile.dep; \
552 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
553 -f $(top_srcdir)/Makefile.comm \
554 -f $$srcdir/Makefile.sub \
555 -f $(top_srcdir)/Makefile.lib \
556 -f Makefile.dep $(do)
558 $(CPROGDIRS): FORCE
559 @$(ENVSETUP); \
560 if test $(srcdir) = .; then \
561 srcdir=.; \
562 else \
563 srcdir=`cd $(srcdir); pwd`/$@; \
564 fi; \
565 test -d $@ || $(mkinstalldirs) $@; \
566 cd $@; \
567 test -f Makefile.dep || touch Makefile.dep; \
568 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
569 -f $(top_srcdir)/Makefile.comm \
570 -f $$srcdir/Makefile.sub \
571 -f $(top_srcdir)/Makefile.cpg \
572 -f Makefile.dep $(do)
574 $(CCPROGDIRS): FORCE
575 @$(ENVSETUP); \
576 if test $(srcdir) = .; then \
577 srcdir=.; \
578 else \
579 srcdir=`cd $(srcdir); pwd`/$@; \
580 fi; \
581 test -d $@ || $(mkinstalldirs) $@; \
582 cd $@; \
583 test -f Makefile.dep || touch Makefile.dep; \
584 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
585 -f $(top_srcdir)/Makefile.comm \
586 -f $$srcdir/Makefile.sub \
587 -f $(top_srcdir)/Makefile.ccpg \
588 -f Makefile.dep $(do)
590 $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE
591 @$(ENVSETUP); \
592 if test $(srcdir) = .; then \
593 srcdir=.; \
594 else \
595 srcdir=`cd $(srcdir); pwd`/$@; \
596 fi; \
597 test -d $@ || $(mkinstalldirs) $@; \
598 cd $@; \
599 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
600 -f $(top_srcdir)/Makefile.comm \
601 -f $$srcdir/Makefile.sub \
602 -f $(top_srcdir)/Makefile.dev $(do)
604 $(INCDIRS) $(PROGDEPDIRS) $(OTHERDIRS): FORCE
605 @$(ENVSETUP); \
606 if test $(srcdir) = .; then \
607 srcdir=.; \
608 else \
609 srcdir=`cd $(srcdir); pwd`/$@; \
610 fi; \
611 test -d $@ || $(mkinstalldirs) $@; \
612 cd $@; \
613 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
614 -f $(top_srcdir)/Makefile.comm \
615 -f $$srcdir/Makefile.sub \
616 -f $(top_srcdir)/Makefile.man $(do)
618 .PHONY: dist
619 dist:
620 -rm -fr tmp
621 rm -f groff-$(version)$(revision).tar.gz
622 mkdir tmp
623 for d in $(DISTDIRS); do \
624 $(mkinstalldirs) tmp/$$d; \
625 done
626 srcdir=`cd $(srcdir); pwd`; \
627 cd tmp; \
628 $(LN_S) ../Makefile .; \
629 $(LN_S) $$srcdir/* . 2>/dev/null || true; \
630 rm -rf CVS; \
631 for d in $(DISTDIRS); do \
632 (cd $$d; \
633 $(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
634 rm -rf CVS || true); \
635 done; \
636 $(MAKE) srcdir=. VPATH=. distfiles; \
637 $(MAKE) srcdir=. VPATH=. extraclean; \
638 for d in $(EXTRADIRS); do \
639 (cd $$d; $(MAKE) extraclean); \
640 done; \
641 rm -f Makefile; \
642 $(LN_S) $$srcdir/Makefile.init Makefile
643 mv tmp groff-$(version)$(revision)
644 tar cfh - groff-$(version)$(revision) | \
645 gzip -c >groff-$(version)$(revision).tar.gz
646 rm -fr groff-$(version)$(revision)
648 # $(PROGDIRS): libgroff
649 # grops grotty grodvi: libdriver
650 # refer lookbib indxbib lkbib: libbib
651 # $(LIBDIRS) $(PROGDIRS): include
653 .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
655 # Create a Makefile in $(subdir). This is useful for development since it
656 # avoids running make recursively.
657 subdir_Makefile: Makefile.cfg
658 $(MAKE) do=Makefile $(subdir)
660 Makefile.cfg: Makefile
661 >Makefile.cfg
662 for var in $(MDEFINES); do \
663 echo "$$var" >>Makefile.cfg; \
664 done
666 Makefile: Makefile.in
667 $(SHELL) config.status
669 .PHONY: uninstall
670 uninstall: uninstall_sub uninstall_dirs
672 .PHONY: uninstall_dirs
673 uninstall_dirs:
674 # Use `rmdir' here so that the directories are only removed if they are empty.
675 -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
676 $(tmacdir) $(systemtmacdir) $(localtmacdir) \
677 $(fontdir) $(localfontdir) $(bindir) \
678 $(datasubdir) $(dataprogramdir) $(datadir) $(infodir) \
679 $(exampledir) $(htmldocdir) $(docdir) \
680 $(libprogramdir) $(libdir)
683 .PHONY: check
684 check:
686 FORCE:
688 .NOEXPORT: