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