freebsd-skq/contrib/groff/Makefile.in

777 lines
24 KiB
Makefile
Raw Normal View History

2005-10-20 10:45:19 +00:00
# Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
1996-09-07 16:18:32 +00:00
# Written by James Clark (jjc@jclark.com)
#
# This file is part of groff.
#
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.
#
# groff is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with groff; see the file COPYING. If not, write to the Free Software
2005-10-20 10:45:19 +00:00
# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
SHELL=@SHELL@
1996-09-07 16:18:32 +00:00
2001-04-17 12:12:05 +00:00
srcdir=@srcdir@
2005-10-20 10:45:19 +00:00
top_srcdir=@abs_top_srcdir@
2001-04-17 12:12:05 +00:00
VPATH=@srcdir@
2005-10-20 10:45:19 +00:00
top_builddir=@abs_top_builddir@
# `RT_SEP' is the operating system's native PATH SEPARATOR CHAR, which
# is to be used in runtime PATHs compiled into groff executables.
RT_SEP=@GROFF_PATH_SEPARATOR@
# `SH_SEP' is a alternative PATH SEPARATOR CHAR, to be used in shell
# scripts and makefile rules; it may be the same as `RT_SEP', but,
# particularly in some Microsoft environments, it may differ.
SH_SEP=@PATH_SEPARATOR@
2001-04-17 12:12:05 +00:00
version=`cat $(top_srcdir)/VERSION`
2002-10-11 08:52:17 +00:00
# No additional number if revision is zero.
2001-04-17 12:12:05 +00:00
revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
1996-09-07 16:18:32 +00:00
# Define `page' to be letter if your PostScript printer uses 8.5x11
# paper (USA) and define it to be A4, if it uses A4 paper (rest of the
# world).
PAGE=@PAGE@
2005-10-20 10:45:19 +00:00
# The name of the ghostscript program. Normally, gs, on GNU/Linux
# but it might be different on MS-DOS/MS-WIN32 systems.
GHOSTSCRIPT=@GHOSTSCRIPT@
# `ALT_GHOSTSCRIPT_PROGS' specifies a list alternative names,
# which can be tried if `GHOSTSCRIPT' cannot be found at run time.
ALT_GHOSTSCRIPT_PROGS=@ALT_GHOSTSCRIPT_PROGS@
# Similarly, `ALT_AWK_PROGS' specifies a list of alternative names,
# which can be tried at run time, to identify the awk program.
ALT_AWK_PROGS=@ALT_AWK_PROGS@
1996-09-07 16:18:32 +00:00
# Normally the Postscript driver, grops, produces output that conforms
# to version 3.0 of the Adobe Document Structuring Conventions.
# Unfortunately some spoolers and previewers can't handle such output.
# The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
# make its output acceptable to such programs. This variable controls
# only the default behaviour of grops; the behaviour can be changed at
# runtime by the grops -b option (and so by groff -P-b).
# Use a value of 0 if your spoolers and previewers are able to handle
# conforming PostScript correctly.
# Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
# this is needed for early versions of TranScript that get confused by
# anything between the %%EndProlog line and the first %%Page: comment.
# Add 2 if lines in included files beginning with %! should be
# stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
# Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
# stripped out of included files; this is needed for spoolers that
# don't understand the %%{Begin,End}Document comments. I suspect this
# includes early versions of TranScript.
# Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
# rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
# with a printer that requires page reversal.
BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
2002-10-11 08:52:17 +00:00
# `DEVICE' is the default device.
1996-09-07 16:18:32 +00:00
DEVICE=ps
2005-10-20 10:45:19 +00:00
# `XDEVDIRS' is either `font/devX{75,100}{,-12}' or empty.
XDEVDIRS=@XDEVDIRS@
# `XPROGDIRS' is either `src/devices/xditview src/utils/xtotroff' or empty.
XPROGDIRS=@XPROGDIRS@
# `XLIBDIRS' is either `src/libs/libxutil' or empty.
XLIBDIRS=@XLIBDIRS@
2002-10-11 08:52:17 +00:00
# `TTYDEVDIRS' is either `font/devascii font/devlatin1' (for
# ASCII) or `font/devcp1047' (for EBCDIC) plus font/devutf8.
TTYDEVDIRS=@TTYDEVDIRS@ font/devutf8
2000-12-05 18:49:44 +00:00
2002-10-11 08:52:17 +00:00
# `OTHERDEVDIRS' is either `font/devlj4 font/devlbp' (for ASCII) or
# empty (for EBCDIC).
OTHERDEVDIRS=@OTHERDEVDIRS@
# `PSPRINT' is the command to use for printing a PostScript file,
1996-09-07 16:18:32 +00:00
# for example `lpr'.
PSPRINT=@PSPRINT@
2002-10-11 08:52:17 +00:00
# `DVIPRINT' is the command to use for printing a TeX dvi file,
1996-09-07 16:18:32 +00:00
# for example `lpr -d'.
DVIPRINT=@DVIPRINT@
# Prefix for names of programs that have Unix counterparts.
# For example, if `g' is `g' then troff will be installed as
# gtroff. This doesn't affect programs like grops or groff that have
# no Unix counterparts. Note that the groff versions of eqn and tbl
# will not work with Unix troff.
g=@g@
# Common prefix for installation directories.
# Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
# This must already exist when you do make install.
prefix=@prefix@
exec_prefix=@exec_prefix@
2002-10-11 08:52:17 +00:00
# `bindir' says where to install executables.
2001-04-17 12:12:05 +00:00
bindir=@bindir@
1996-09-07 16:18:32 +00:00
2002-10-11 08:52:17 +00:00
# `libdir' says where to install platform-dependent data.
2001-04-17 12:12:05 +00:00
libdir=@libdir@
libprogramdir=$(libdir)/groff
2002-10-11 08:52:17 +00:00
# `datasubdir' says where to install platform-independent data files.
2000-12-05 18:49:44 +00:00
datadir=@datadir@
2001-04-17 12:12:05 +00:00
dataprogramdir=$(datadir)/groff
datasubdir=$(dataprogramdir)/$(version)$(revision)
1996-09-07 16:18:32 +00:00
2002-10-11 08:52:17 +00:00
# `infodir' says where to install info files.
infodir=@infodir@
# `docdir' says where to install documentation files.
docdir=$(datadir)/doc/groff/$(version)$(revision)
# `exampledir' says where to install example files.
exampledir=$(docdir)/examples
# `htmldocdir' says where to install documentation in HTML format.
htmldocdir=$(docdir)/html
2005-10-20 10:45:19 +00:00
# `pdfdocdir' says where to install documentation in PDF format.
pdfdocdir=$(docdir)/pdf
2002-10-11 08:52:17 +00:00
# `fontdir' says where to install dev*/*.
1996-09-07 16:18:32 +00:00
fontdir=$(datasubdir)/font
2002-10-11 08:52:17 +00:00
# `localfontdir' says where local fonts will be installed (as dev*/*).
localfontdir=$(dataprogramdir)/site-font
# `legacyfontdir' is for compatibility with non-GNU troff.
legacyfontdir=/usr/lib/font
1996-09-07 16:18:32 +00:00
2002-10-11 08:52:17 +00:00
# `fontpath' says where to look for dev*/*.
2005-10-20 10:45:19 +00:00
fontpath=$(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
2002-10-11 08:52:17 +00:00
# `tmacdir' says where to install macros.
1996-09-07 16:18:32 +00:00
tmacdir=$(datasubdir)/tmac
2002-10-11 08:52:17 +00:00
# `systemtmacdir' says where to install platform-dependent macros.
2001-04-17 12:12:05 +00:00
systemtmacdir=$(libprogramdir)/site-tmac
2002-10-11 08:52:17 +00:00
# `localtmacdir' says where local files will be installed.
2001-04-17 12:12:05 +00:00
localtmacdir=$(dataprogramdir)/site-tmac
2005-10-20 10:45:19 +00:00
# `appresdir' says where to install the application resource file for
# gxditview.
appresdir=@appresdir@
2002-10-11 08:52:17 +00:00
# `tmacpath' says where to look for macro files.
2001-04-17 12:12:05 +00:00
# The current directory will be prepended in unsafe mode only; the home
# directory will be always added.
# `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
# current nor in the home directory.
2005-10-20 10:45:19 +00:00
tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
1996-09-07 16:18:32 +00:00
2002-10-11 08:52:17 +00:00
# `sys_tmac_prefix' is prefix (if any) for system macro packages.
1996-09-07 16:18:32 +00:00
sys_tmac_prefix=@sys_tmac_prefix@
2003-05-01 13:09:50 +00:00
# `pnmtops_nosetpage' is the command to be run to generate an eps
# file. Some versions of pnmtops provide the -nosetpage option.
# We detect this and use it if present.
pnmtops_nosetpage=@pnmtops_nosetpage@
2002-10-11 08:52:17 +00:00
# `tmac_wrap' is list of system macro packages that should be made
1996-09-07 16:18:32 +00:00
# available to groff by creating a corresponding macro package
# in the groff macro directory that references the system macro
# package.
tmac_wrap=@tmac_wrap@
# If there is a groff version of a macro package listed in $(tmac_wrap),
# then the groff version will be installed with a prefix of this.
# Don't make this empty.
tmac_prefix=g
2000-12-05 18:49:44 +00:00
# The groff -mm macros will be available as -m$(tmac_m_prefix)m.
1996-09-07 16:18:32 +00:00
tmac_m_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
2000-12-05 18:49:44 +00:00
# The groff -ms macros will be available as -m$(tmac_s_prefix)s.
1996-09-07 16:18:32 +00:00
tmac_s_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
2000-12-05 18:49:44 +00:00
# The groff -man macros will be available as -m$(tmac_an_prefix)an.
1996-09-07 16:18:32 +00:00
tmac_an_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
# Extension to be used for refer index files. Index files are not
# sharable between different architectures, so you might want to use
# different suffixes for different architectures. Choose an extension
# that doesn't conflict with refer or any other indexing program.
indexext=.i
# Directory containing the default index for refer.
indexdir=/usr/dict/papers
# The filename (without suffix) of the default index for refer.
indexname=Ind
# common_words_file is a file containing a list of common words.
# If your system provides /usr/lib/eign it will be copied onto this,
# otherwise the supplied eign file will be used.
common_words_file=$(datasubdir)/eign
2002-10-11 08:52:17 +00:00
# `manroot' is the root of the man page directory tree.
2001-07-10 17:09:00 +00:00
mandir=@mandir@
manroot=$(mandir)
1996-09-07 16:18:32 +00:00
2002-10-11 08:52:17 +00:00
# `man1ext' is the man section for user commands.
1996-09-07 16:18:32 +00:00
man1ext=1
man1dir=$(manroot)/man$(man1ext)
2002-10-11 08:52:17 +00:00
# `man5ext' is the man section for file formats.
1996-09-07 16:18:32 +00:00
man5ext=5
man5dir=$(manroot)/man$(man5ext)
2002-10-11 08:52:17 +00:00
# `man7ext' is the man section for macros.
1996-09-07 16:18:32 +00:00
man7ext=7
man7dir=$(manroot)/man$(man7ext)
2002-10-11 08:52:17 +00:00
# The configure script checks whether all necessary utility programs for
# grohtml are available -- only then we can build the HTML documentation.
make_html=@make_html@
make_install_html=@make_install_html@
2005-10-20 10:45:19 +00:00
# The configure script also checks whether all necessary utility programs
# for pdfroff are available -- only then we can build PDF documentation.
make_pdfdoc=@make_pdfdoc@
make_install_pdfdoc=@make_install_pdfdoc@
1996-09-07 16:18:32 +00:00
# DEFINES should include the following:
# -DHAVE_MMAP if you have mmap() and <sys/mman.h>
# -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
2002-10-11 08:52:17 +00:00
# -DSYS_SIGLIST_DECLARED if you have sys_siglist[]
1996-09-07 16:18:32 +00:00
# -DWCOREFLAG=0200 if the 0200 bit of the status returned by
# wait() indicates whether a core image was
# produced for a process that was terminated
# by a signal
2002-10-11 08:52:17 +00:00
#
1996-09-07 16:18:32 +00:00
# -DHAVE_DIRENT_H if you have <dirent.h>
# -DHAVE_LIMITS_H if you have <limits.h>
# -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
2002-10-11 08:52:17 +00:00
# -DHAVE_MATH_H if you have <math.h>
# -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
2005-10-20 10:45:19 +00:00
# -DHAVE_CC_INTTYPES_H if you have a C++ <inttypes.h>
1996-09-07 16:18:32 +00:00
# -DHAVE_STDLIB_H if you have <stdlib.h>
2002-10-11 08:52:17 +00:00
# -DHAVE_STRING_H if you have <string.h>
2000-12-05 18:49:44 +00:00
# -DHAVE_STRINGS_H if you have <strings.h>
2002-10-11 08:52:17 +00:00
# -DHAVE_SYS_DIR_H if you have <sys/dir.h>
# -DHAVE_SYS_TIME_H if you have <sys/time.h>
# -DHAVE_UNISTD_H if you have <unistd.h>
#
# -DHAVE_FMOD if you have fmod()
# -DHAVE_GETCWD if you have getcwd()
# -DHAVE_GETTIMEOFDAY if you have gettimeofday()
# -DHAVE_ISATTY if you have isatty()
2005-10-20 10:45:19 +00:00
# -DHAVE_KILL if you have kill()
1996-09-07 16:18:32 +00:00
# -DHAVE_MKSTEMP if you have mkstemp()
2002-10-11 08:52:17 +00:00
# -DHAVE_MMAP if you have mmap()
# -DHAVE_PUTENV if you have putenv()
# -DHAVE_RENAME if you have rename()
2003-05-01 13:09:50 +00:00
# -DHAVE_SETLOCALE if you have setlocale()
2002-10-11 08:52:17 +00:00
# -DHAVE_SNPRINTF if you have snprintf()
2000-12-05 18:49:44 +00:00
# -DHAVE_STRCASECMP if you have strcasecmp()
2002-10-11 08:52:17 +00:00
# -DHAVE_STRNCASECMP if you have strncasecmp()
# -DHAVE_STRERROR if you have strerror()
# -DHAVE_STRSEP if you have strsep()
# -DHAVE_STRTOL if you have strtol()
2005-10-20 10:45:19 +00:00
# -DHAVE_VSNPRINTF if you have vsnprintf()
2002-10-11 08:52:17 +00:00
#
# -DNEED_DECLARATION_GETTIMEOFTODAY
# if your C++ <sys/time.h> doesn't declare
# gettimeofday()
2000-12-05 18:49:44 +00:00
# -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
# -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
2002-10-11 08:52:17 +00:00
# -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
2005-10-20 10:45:19 +00:00
# -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare
# putenv()
2003-05-01 13:09:50 +00:00
# -DNEED_DECLARATION_RAND if your C++ <stdlib.h> doesn't declare rand()
2005-10-20 10:45:19 +00:00
# -DNEED_DECLARATION_SNPRINTF if your C++ <stdio.h> doesn't declare
# snprintf()
2003-05-01 13:09:50 +00:00
# -DNEED_DECLARATION_SRAND if your C++ <stdlib.h> doesn't declare srand()
2002-10-11 08:52:17 +00:00
# -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
# strcasecmp()
2000-12-05 18:49:44 +00:00
# -DNEED_DECLARATION_STRNCASECMP
# if your C++ <string.h> doesn't declare
# strncasecmp()
2005-10-20 10:45:19 +00:00
# -DNEED_DECLARATION_VFPRINTF if your C++ <stdio.h> doesn't declare
# vfprintf()
# -DNEED_DECLARATION_VSNPRINTF if your C++ <stdio.h> doesn't declare
# vsnprintf()
2002-10-11 08:52:17 +00:00
#
# -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
2000-01-12 09:51:43 +00:00
# -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
# -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
# <stdio.h>
1996-09-07 16:18:32 +00:00
# -DTRADITIONAL_CPP if your C++ compiler uses a traditional
2000-01-12 09:51:43 +00:00
# (Reiser) preprocessor
1996-09-07 16:18:32 +00:00
# -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
# -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
# -DRETSIGTYPE=int if signal handlers return int not void
2000-12-05 18:49:44 +00:00
# -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
2005-10-20 10:45:19 +00:00
# -DPAGE=A4 if the the printer's page size is A4
# -DGHOSTSCRIPT=gs the name (and directory if required) of the
# ghostscript program
1996-09-07 16:18:32 +00:00
DEFINES=@DEFS@
2002-10-11 08:52:17 +00:00
# Include
#
2003-05-01 13:09:50 +00:00
# {fmod,getcwd,mkstemp,putenv,snprintf,strcasecmp,
# strerror,strncasecmp,strtol}.$(OBJEXT)
2002-10-11 08:52:17 +00:00
#
# in LIBOBJS if your C library is missing the corresponding function.
2005-10-20 10:45:19 +00:00
# vsnprintf is defined in the snprintf.$(OBJEXT) module.
1996-09-07 16:18:32 +00:00
LIBOBJS=@LIBOBJS@
2003-05-01 13:09:50 +00:00
# `CCC' is the compiler for C++ (.cpp) files.
1996-09-07 16:18:32 +00:00
CCC=@CXX@
CC=@CC@
# CCDEFINES are definitions for C++ compilations.
CCDEFINES=$(DEFINES)
# CDEFINES are definitions for C compilations.
CDEFINES=$(DEFINES)
CCFLAGS=@CXXFLAGS@
CFLAGS=@CFLAGS@
2005-10-20 10:45:19 +00:00
CPPFLAGS=@CPPFLAGS@
2000-01-12 09:51:43 +00:00
LDFLAGS=@LDFLAGS@
2005-10-20 10:45:19 +00:00
X_CFLAGS=@X_CFLAGS@
X_LIBS=@X_LIBS@
X_EXTRA_LIBS=@X_EXTRA_LIBS@
X_PRE_LIBS=@X_PRE_LIBS@
1996-09-07 16:18:32 +00:00
YACC=@YACC@
YACCFLAGS=-v
2002-10-11 08:52:17 +00:00
EXEEXT=@EXEEXT@
OBJEXT=@OBJEXT@
2003-05-01 13:09:50 +00:00
# a simple heuristic assumption
LIBEXT=`case $(OBJEXT) in obj) echo lib;; *) echo a;; esac`
1996-09-07 16:18:32 +00:00
LIBS=@LIBS@
2000-01-12 09:51:43 +00:00
LIBM=@LIBM@
1996-09-07 16:18:32 +00:00
RANLIB=@RANLIB@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
2000-12-05 18:49:44 +00:00
INSTALL_SCRIPT=@INSTALL_SCRIPT@
1996-09-07 16:18:32 +00:00
INSTALL_DATA=@INSTALL_DATA@
2002-10-11 08:52:17 +00:00
INSTALL_INFO=@INSTALL_INFO@
1996-09-07 16:18:32 +00:00
LN_S=@LN_S@
AR=ar
ETAGS=etags
ETAGSFLAGS=
# Flag that tells etags to assume C++.
ETAGSCCFLAG=-C
# Full path to perl.
PERLPATH=@PERLPATH@
# Sed command with which to edit sh scripts.
SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
2005-10-20 10:45:19 +00:00
# Sed script to deal with OS dependencies in sh scripts.
SH_DEPS_SED_SCRIPT=$(top_builddir)/arch/misc/shdeps.sed
2000-12-05 18:49:44 +00:00
2002-10-11 08:52:17 +00:00
# The program to create directory hierarchies.
2005-10-20 10:45:19 +00:00
mkinstalldirs= $(SHELL) $(top_srcdir)/mkinstalldirs
1996-09-07 16:18:32 +00:00
PURIFY=purify
PURIFYCCFLAGS=
#PURIFYCCFLAGS=-g++=yes \
# -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
# Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
# copy of $(MDEFINES) when making individual directories; this could
# cause the argument list to become too long on some systems.
2000-12-05 18:49:44 +00:00
MDEFINES= \
2005-10-20 10:45:19 +00:00
"ALT_AWK_PROGS=$(ALT_AWK_PROGS)" \
"ALT_GHOSTSCRIPT_PROGS=$(ALT_GHOSTSCRIPT_PROGS)" \
2003-05-01 13:09:50 +00:00
"AR=$(AR)" \
2000-12-05 18:49:44 +00:00
"BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
2003-05-01 13:09:50 +00:00
"CC=$(CC)" \
"CCC=$(CCC)" \
"CCDEFINES=$(CCDEFINES)" \
"CCFLAGS=$(CCFLAGS)" \
"CDEFINES=$(CDEFINES)" \
"CFLAGS=$(CFLAGS)" \
2005-10-20 10:45:19 +00:00
"CPPFLAGS=$(CPPFLAGS)" \
2000-12-05 18:49:44 +00:00
"DEVICE=$(DEVICE)" \
2003-05-01 13:09:50 +00:00
"DVIPRINT=$(DVIPRINT)" \
"ETAGS=$(ETAGS)" \
"ETAGSCCFLAG=$(ETAGSCCFLAG)" \
"ETAGSFLAGS=$(ETAGSFLAGS)" \
"EXEEXT=$(EXEEXT)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_INFO=$(INSTALL_INFO)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
"LDFLAGS=$(LDFLAGS)" \
"LIBEXT=$(LIBEXT)" \
"LIBM=$(LIBM)" \
"LIBOBJS=$(LIBOBJS)" \
"LIBS=$(LIBS)" \
"MAKEOVERRIDES=$(MAKEOVERRIDES)" \
"OBJEXT=$(OBJEXT)" \
2002-10-11 08:52:17 +00:00
"OTHERDEVDIRS=$(OTHERDEVDIRS)" \
2003-05-01 13:09:50 +00:00
"PAGE=$(PAGE)" \
2005-10-20 10:45:19 +00:00
"GHOSTSCRIPT=$(GHOSTSCRIPT)" \
2003-05-01 13:09:50 +00:00
"PERLPATH=$(PERLPATH)" \
2000-12-05 18:49:44 +00:00
"PSPRINT=$(PSPRINT)" \
2003-05-01 13:09:50 +00:00
"PURIFY=$(PURIFY)" \
"PURIFYCCFLAGS=$(PURIFYCCFLAGS)" \
"RANLIB=$(RANLIB)" \
2005-10-20 10:45:19 +00:00
"RT_SEP=$(RT_SEP)" \
"SH_SEP=$(SH_SEP)" \
"SHELL=$(SHELL)" \
2003-05-01 13:09:50 +00:00
"SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
2005-10-20 10:45:19 +00:00
"SH_DEPS_SED_SCRIPT=$(SH_DEPS_SED_SCRIPT)" \
2003-05-01 13:09:50 +00:00
"TTYDEVDIRS=$(TTYDEVDIRS)" \
2005-10-20 10:45:19 +00:00
"XDEVDIRS=$(XDEVDIRS)" \
"XLIBDIRS=$(XLIBDIRS)" \
"XPROGDIRS=$(XPROGDIRS)" \
"X_CFLAGS=$(X_CFLAGS)" \
"X_LIBS=$(X_LIBS)" \
"X_EXTRA_LIBS=$(X_EXTRA_LIBS)" \
"X_PRE_LIBS=$(X_PRE_LIBS)" \
2003-05-01 13:09:50 +00:00
"YACC=$(YACC)" \
"YACCFLAGS=$(YACCFLAGS)" \
2005-10-20 10:45:19 +00:00
"appresdir=$(appresdir)" \
2003-05-01 13:09:50 +00:00
"bindir=$(bindir)" \
"common_words_file=$(common_words_file)" \
2000-12-05 18:49:44 +00:00
"datadir=$(datadir)" \
2001-04-17 12:12:05 +00:00
"dataprogramdir=$(dataprogramdir)" \
2000-12-05 18:49:44 +00:00
"datasubdir=$(datasubdir)" \
2002-10-11 08:52:17 +00:00
"docdir=$(docdir)" \
"exampledir=$(exampledir)" \
2003-05-01 13:09:50 +00:00
"exec_prefix=$(exec_prefix)" \
"fontdir=$(fontdir)" \
"fontpath=$(fontpath)" \
"g=$(g)" \
2002-10-11 08:52:17 +00:00
"htmldocdir=$(htmldocdir)" \
2005-10-20 10:45:19 +00:00
"pdfdocdir=$(pdfdocdir)" \
2003-05-01 13:09:50 +00:00
"indexdir=$(indexdir)" \
"indexext=$(indexext)" \
"indexname=$(indexname)" \
"infodir=$(infodir)" \
"legacyfontdir=$(legacyfontdir)" \
2001-04-17 12:12:05 +00:00
"libdir=$(libdir)" \
"libprogramdir=$(libprogramdir)" \
2002-10-11 08:52:17 +00:00
"localfontdir=$(localfontdir)" \
2001-04-17 12:12:05 +00:00
"localtmacdir=$(localtmacdir)" \
2003-05-01 13:09:50 +00:00
"make_html=$(make_html)" \
"make_install_html=$(make_install_html)" \
2005-10-20 10:45:19 +00:00
"make_pdfdoc=$(make_pdfdoc)" \
"make_install_pdfdoc=$(make_install_pdfdoc)" \
2000-12-05 18:49:44 +00:00
"man1dir=$(man1dir)" \
2003-05-01 13:09:50 +00:00
"man1ext=$(man1ext)" \
2000-12-05 18:49:44 +00:00
"man5dir=$(man5dir)" \
2003-05-01 13:09:50 +00:00
"man5ext=$(man5ext)" \
2000-12-05 18:49:44 +00:00
"man7dir=$(man7dir)" \
2003-05-01 13:09:50 +00:00
"man7ext=$(man7ext)" \
"manroot=$(manroot)" \
2000-12-05 18:49:44 +00:00
"mkinstalldirs=$(mkinstalldirs)" \
2003-05-01 13:09:50 +00:00
"prefix=$(prefix)" \
"revision=$(revision)" \
2000-12-05 18:49:44 +00:00
"sys_tmac_prefix=$(sys_tmac_prefix)" \
2003-05-01 13:09:50 +00:00
"pnmtops_nosetpage=$(pnmtops_nosetpage)" \
"systemtmacdir=$(systemtmacdir)" \
1996-09-07 16:18:32 +00:00
"tmac_an_prefix=$(tmac_an_prefix)" \
2000-12-05 18:49:44 +00:00
"tmac_m_prefix=$(tmac_m_prefix)" \
2003-05-01 13:09:50 +00:00
"tmac_s_prefix=$(tmac_s_prefix)" \
"tmac_wrap=$(tmac_wrap)" \
"tmacdir=$(tmacdir)" \
"tmacpath=$(tmacpath)" \
"top_builddir=$(top_builddir)" \
"top_srcdir=$(top_srcdir)" \
"version=$(version)"
1996-09-07 16:18:32 +00:00
2000-12-05 18:49:44 +00:00
INCDIRS=src/include
LIBDIRS=\
src/libs/libgroff \
src/libs/libdriver \
2005-10-20 10:45:19 +00:00
src/libs/libbib \
$(XLIBDIRS)
2000-12-05 18:49:44 +00:00
CCPROGDIRS=\
src/roff/groff \
src/roff/troff \
src/preproc/tbl \
src/preproc/pic \
src/preproc/eqn \
src/preproc/grn \
src/preproc/refer \
src/preproc/soelim \
2001-04-17 12:12:05 +00:00
src/preproc/html \
2000-12-05 18:49:44 +00:00
src/devices/grops \
src/devices/grotty \
src/devices/grodvi \
src/devices/grolj4 \
src/devices/grohtml \
src/devices/grolbp \
src/utils/tfmtodit \
src/utils/hpftodit \
src/utils/lookbib \
src/utils/indxbib \
src/utils/lkbib \
src/utils/addftinfo
2005-10-20 10:45:19 +00:00
CPROGDIRS=\
src/utils/pfbtops \
$(XPROGDIRS)
PROGDEPDIRS=arch/misc
PROGDIRS=$(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS)
2000-12-05 18:49:44 +00:00
DEVDIRS=\
font/devps \
font/devdvi \
2002-10-11 08:52:17 +00:00
font/devhtml
2000-12-05 18:49:44 +00:00
ALLTTYDEVDIRS=\
font/devascii \
font/devlatin1 \
font/devutf8 \
font/devcp1047
2005-10-20 10:45:19 +00:00
# `doc' must be processed before `contrib/pdfmark'.
2000-12-05 18:49:44 +00:00
OTHERDIRS=\
man \
tmac \
src/utils/afmtodit \
src/roff/grog \
src/roff/nroff \
2005-10-20 10:45:19 +00:00
doc \
2002-10-11 08:52:17 +00:00
contrib/mm \
contrib/pic2graph \
contrib/eqn2graph \
2005-10-20 10:45:19 +00:00
contrib/grap2graph \
2002-10-11 08:52:17 +00:00
contrib/groffer \
contrib/mom \
2005-10-20 10:45:19 +00:00
contrib/pdfmark \
contrib/gdiffmk
2000-12-05 18:49:44 +00:00
ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
2005-10-20 10:45:19 +00:00
$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
2000-12-05 18:49:44 +00:00
EXTRADIRS=\
font/devps/generate \
font/devdvi/generate \
2002-10-11 08:52:17 +00:00
font/devlj4/generate \
2000-12-05 18:49:44 +00:00
doc
2002-10-11 08:52:17 +00:00
NOMAKEDIRS=\
arch/djgpp \
contrib/mm/examples \
contrib/mm/mm \
contrib/mom/examples \
contrib/mom/momdoc \
2005-10-20 10:45:19 +00:00
contrib/gdiffmk/tests \
2002-10-11 08:52:17 +00:00
src/libs/snprintf
DISTDIRS=\
2005-10-20 10:45:19 +00:00
$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) \
2002-10-11 08:52:17 +00:00
$(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS)
1996-09-07 16:18:32 +00:00
TARGETS=all install install_bin install_data clean distclean mostlyclean \
realclean extraclean distfiles TAGS depend uninstall_sub
2000-12-05 18:49:44 +00:00
# This ENVSETUP gork is required by the DJGPP build on Windows 9X,
# where Make needs to be case-sensitive to find files like BI and VERSION.
ENVSETUP=\
if test -f $(srcdir)/makefile.ccpg* && \
2005-10-20 10:45:19 +00:00
test -f $(srcdir)/Makefile.ccpg*; then \
FNCASE=y; export FNCASE; \
2000-12-05 18:49:44 +00:00
else :; \
fi
1996-09-07 16:18:32 +00:00
do=all
dodirs=$(ALLDIRS) dot
# Default target for subdir_Makefile
2000-12-05 18:49:44 +00:00
subdir=src/roff/troff
1996-09-07 16:18:32 +00:00
$(TARGETS):
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
1996-09-07 16:18:32 +00:00
dot: FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
-f $(top_srcdir)/Makefile.comm \
-f $(top_srcdir)/Makefile.sub $(do)
2000-01-12 09:51:43 +00:00
1996-09-07 16:18:32 +00:00
$(LIBDIRS): FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
2005-10-20 10:45:19 +00:00
if test $(srcdir) = .; then \
srcdir=.; \
else \
srcdir=`cd $(srcdir); pwd`/$@; \
1996-09-07 16:18:32 +00:00
fi; \
2000-12-05 18:49:44 +00:00
test -d $@ || $(mkinstalldirs) $@; \
1996-09-07 16:18:32 +00:00
cd $@; \
2000-12-05 18:49:44 +00:00
test -f Makefile.dep || touch Makefile.dep; \
1996-09-07 16:18:32 +00:00
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
2000-12-05 18:49:44 +00:00
-f $(top_srcdir)/Makefile.comm \
-f $$srcdir/Makefile.sub \
-f $(top_srcdir)/Makefile.lib \
-f Makefile.dep $(do)
1996-09-07 16:18:32 +00:00
$(CPROGDIRS): FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
2005-10-20 10:45:19 +00:00
if test $(srcdir) = .; then \
srcdir=.; \
else \
srcdir=`cd $(srcdir); pwd`/$@; \
1996-09-07 16:18:32 +00:00
fi; \
2000-12-05 18:49:44 +00:00
test -d $@ || $(mkinstalldirs) $@; \
1996-09-07 16:18:32 +00:00
cd $@; \
2000-12-05 18:49:44 +00:00
test -f Makefile.dep || touch Makefile.dep; \
1996-09-07 16:18:32 +00:00
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
2000-12-05 18:49:44 +00:00
-f $(top_srcdir)/Makefile.comm \
-f $$srcdir/Makefile.sub \
-f $(top_srcdir)/Makefile.cpg \
-f Makefile.dep $(do)
1996-09-07 16:18:32 +00:00
$(CCPROGDIRS): FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
2005-10-20 10:45:19 +00:00
if test $(srcdir) = .; then \
srcdir=.; \
else \
srcdir=`cd $(srcdir); pwd`/$@; \
1996-09-07 16:18:32 +00:00
fi; \
2000-12-05 18:49:44 +00:00
test -d $@ || $(mkinstalldirs) $@; \
1996-09-07 16:18:32 +00:00
cd $@; \
2000-12-05 18:49:44 +00:00
test -f Makefile.dep || touch Makefile.dep; \
1996-09-07 16:18:32 +00:00
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
2000-12-05 18:49:44 +00:00
-f $(top_srcdir)/Makefile.comm \
-f $$srcdir/Makefile.sub \
-f $(top_srcdir)/Makefile.ccpg \
-f Makefile.dep $(do)
2005-10-20 10:45:19 +00:00
$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
2005-10-20 10:45:19 +00:00
if test $(srcdir) = .; then \
srcdir=.; \
else \
srcdir=`cd $(srcdir); pwd`/$@; \
1996-09-07 16:18:32 +00:00
fi; \
2000-12-05 18:49:44 +00:00
test -d $@ || $(mkinstalldirs) $@; \
1996-09-07 16:18:32 +00:00
cd $@; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
2000-12-05 18:49:44 +00:00
-f $(top_srcdir)/Makefile.comm \
-f $$srcdir/Makefile.sub \
-f $(top_srcdir)/Makefile.dev $(do)
1996-09-07 16:18:32 +00:00
2005-10-20 10:45:19 +00:00
$(INCDIRS) $(PROGDEPDIRS) $(OTHERDIRS): FORCE
2000-12-05 18:49:44 +00:00
@$(ENVSETUP); \
2005-10-20 10:45:19 +00:00
if test $(srcdir) = .; then \
srcdir=.; \
else \
srcdir=`cd $(srcdir); pwd`/$@; \
1996-09-07 16:18:32 +00:00
fi; \
2000-12-05 18:49:44 +00:00
test -d $@ || $(mkinstalldirs) $@; \
1996-09-07 16:18:32 +00:00
cd $@; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
2000-12-05 18:49:44 +00:00
-f $(top_srcdir)/Makefile.comm \
-f $$srcdir/Makefile.sub \
-f $(top_srcdir)/Makefile.man $(do)
1996-09-07 16:18:32 +00:00
.PHONY: dist
dist:
-rm -fr tmp
2000-12-05 18:49:44 +00:00
rm -f groff-$(version)$(revision).tar.gz
1996-09-07 16:18:32 +00:00
mkdir tmp
for d in $(DISTDIRS); do \
2000-12-05 18:49:44 +00:00
$(mkinstalldirs) tmp/$$d; \
1996-09-07 16:18:32 +00:00
done
srcdir=`cd $(srcdir); pwd`; \
cd tmp; \
$(LN_S) ../Makefile .; \
$(LN_S) $$srcdir/* . 2>/dev/null || true; \
2002-10-11 08:52:17 +00:00
rm -rf CVS; \
1996-09-07 16:18:32 +00:00
for d in $(DISTDIRS); do \
2002-10-11 08:52:17 +00:00
(cd $$d; \
$(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
rm -rf CVS || true); \
1996-09-07 16:18:32 +00:00
done; \
2002-10-11 08:52:17 +00:00
$(MAKE) srcdir=. VPATH=. distfiles; \
$(MAKE) srcdir=. VPATH=. extraclean; \
1996-09-07 16:18:32 +00:00
for d in $(EXTRADIRS); do \
2005-10-20 10:45:19 +00:00
(cd $$d; \
if test -f Makefile; then \
$(MAKE) extraclean; \
else \
$(MAKE) -f $(top_builddir)/$$d/Makefile extraclean; \
fi); \
1996-09-07 16:18:32 +00:00
done; \
rm -f Makefile; \
$(LN_S) $$srcdir/Makefile.init Makefile
2000-12-05 18:49:44 +00:00
mv tmp groff-$(version)$(revision)
tar cfh - groff-$(version)$(revision) | \
gzip -c >groff-$(version)$(revision).tar.gz
rm -fr groff-$(version)$(revision)
1996-09-07 16:18:32 +00:00
# $(PROGDIRS): libgroff
# grops grotty grodvi: libdriver
# refer lookbib indxbib lkbib: libbib
# $(LIBDIRS) $(PROGDIRS): include
.PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
2002-10-11 08:52:17 +00:00
# Create a Makefile in $(subdir). This is useful for development since it
# avoids running make recursively.
1996-09-07 16:18:32 +00:00
subdir_Makefile: Makefile.cfg
$(MAKE) do=Makefile $(subdir)
Makefile.cfg: Makefile
>Makefile.cfg
for var in $(MDEFINES); do \
echo "$$var" >>Makefile.cfg; \
done
Makefile: Makefile.in
$(SHELL) config.status
.PHONY: uninstall
uninstall: uninstall_sub uninstall_dirs
.PHONY: uninstall_dirs
uninstall_dirs:
2002-10-11 08:52:17 +00:00
# Use `rmdir' here so that the directories are only removed if they are empty.
1996-09-07 16:18:32 +00:00
-rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
2002-10-11 08:52:17 +00:00
$(tmacdir) $(systemtmacdir) $(localtmacdir) \
$(fontdir) $(localfontdir) $(bindir) \
2005-10-20 10:45:19 +00:00
$(datasubdir) $(dataprogramdir) $(infodir) \
$(exampledir) $(htmldocdir) $(pdfdocdir) $(docdir) \
$(libprogramdir) $(libdir) \
$(datadir)/doc/groff $(datadir)/doc $(datadir) 2>/dev/null || :
.PHONY: check docheck
check: site.exp docheck
docheck:
if $(SHELL) -c "runtest --version" > /dev/null 2>&1; then \
runtest; \
else \
echo "WARNING: could not find \`runtest'" 1>&2; \
fi
1996-09-07 16:18:32 +00:00
2005-10-20 10:45:19 +00:00
# This snippet has been taken from the automake package.
site.exp:
@echo "Making a new site.exp file..."
@echo "## these variables are automatically generated by make ##" >site.tmp
@echo "# Do not edit here. If you wish to override these values" >>site.tmp
@echo "# edit the last section" >>site.tmp
@echo "set tool groff" >>site.tmp
@echo "set srcdir $(srcdir)/testsuite" >>site.tmp
@echo "set objdir `pwd`" >> site.tmp
@echo "## All variables above are generated by configure. Do not edit! ##" >> site.tmp
@test ! -f site.exp \
|| sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
@-rm -f site.bak
@test ! -f site.exp || mv site.exp site.bak
@mv site.tmp site.exp
1996-09-07 16:18:32 +00:00
FORCE:
.NOEXPORT: