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