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